/* A quiet editorial gallery for the company's completed interiors. */
.case-gallery{position:relative;padding:clamp(72px,8vw,132px) max(5.6vw,24px);background:linear-gradient(160deg,#f9f5ed,#f1eadf);color:#4d3a26;border-top:1px solid #c7b49144;scroll-margin-top:110px}
.cases-heading{display:grid;grid-template-columns:1.1fr .8fr;align-items:end;gap:40px;max-width:1440px;margin:0 auto 48px}
.cases-heading>div,.cases-intro{min-width:0}
.case-gallery .eyebrow{color:#89613d;font-size:.875rem;margin:0 0 18px}
.case-gallery h2{max-width:800px;margin:0;font-size:clamp(2.35rem,5vw,4.9rem);color:#4d3a26;text-shadow:0 2px 14px #77532c0a}
.case-gallery h2:focus{outline:none}
header nav a[href="#cases"]{min-width:0;max-width:15em;white-space:normal;overflow-wrap:break-word;text-wrap:balance}
.cases-intro{max-width:490px;margin:0 0 6px auto;font-size:1rem;color:#766b5a}
.cases-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 24px;max-width:1440px;margin:0 auto}
.case-card{min-width:0;margin:0}
.case-card-wide{grid-column:span 2}
.case-open{display:block;width:100%;padding:0;border:0;border-radius:5px;background:none;color:inherit;text-align:start;cursor:pointer}
.case-photo{position:relative;display:block;overflow:hidden;border-radius:5px;height:clamp(250px,32vw,430px);background:#e5d8c4;box-shadow:0 2px 2px #7a55200b,0 16px 32px #6c4a1710;isolation:isolate}
.case-photo:after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#291b1136);pointer-events:none}
.case-photo>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 67%;transition:transform .8s cubic-bezier(.2,.65,.2,1)}
.case-card-wide .case-photo>img{object-position:center 60%}
.case-expand{position:absolute;z-index:1;bottom:16px;right:16px;display:grid;place-items:center;width:43px;height:43px;background:#fff8eadf;color:#614424;border:1px solid #fff5dfb3;border-radius:50%;box-shadow:0 3px 16px #39281820;transition:background .25s,transform .25s}
.case-expand svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.case-caption{display:flex;justify-content:space-between;align-items:baseline;gap:10px 16px;padding-top:17px;min-width:0}
.case-title{font-family:var(--type-heading);font-size:clamp(1.1rem,1.6vw,1.5rem);line-height:1.45;overflow-wrap:anywhere;min-width:0}
.case-view{font-family:var(--type-body);font-size:.875rem;line-height:1.55;color:#8a6a49;text-align:end;max-width:48%;overflow-wrap:anywhere}
.case-open:focus-visible{outline:2px solid #996e3e;outline-offset:7px}
@media(hover:hover) and (pointer:fine){.case-open:hover .case-photo>img{transform:scale(1.035)}.case-open:hover .case-expand{background:#fff8ed;transform:scale(1.08)}.case-open:hover .case-title{color:#865629}}

html.case-gallery-open{overflow:hidden}
.cases-lightbox{box-sizing:border-box;width:min(1260px,calc(100vw - 48px));height:min(900px,calc(100dvh - 48px));max-width:none;max-height:none;inset:0;margin:auto;padding:0;border:1px solid #c2ab7a45;border-radius:10px;background:#171c17;color:#f6efdf;box-shadow:0 30px 110px #08120c66;overflow:hidden}
.cases-lightbox::backdrop{background:#0d1713d9;backdrop-filter:blur(10px)}
.cases-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.case-view-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 26px 18px;border-bottom:1px solid #e0c79e1f}
.case-view-top>div{min-width:0}
.cases-lightbox .case-view-count{font-family:var(--type-body);font-size:.8125rem;line-height:1.5;color:#c3b392;margin:0 0 6px}
.cases-lightbox h2{font-size:clamp(1.3rem,2.5vw,2rem);color:#f6efdf;margin:0;overflow-wrap:anywhere}
.case-close{flex:0 0 44px;display:grid;place-items:center;width:44px;height:44px;border:1px solid #d9c5a04d;border-radius:50%;background:transparent;color:#f6efdf;cursor:pointer}
.case-close svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.4;fill:none}
.case-view-image{min-height:0;min-width:0;display:flex;justify-content:center;align-items:center;padding:12px 24px;overflow:hidden;background:radial-gradient(ellipse at center,#4140345c,transparent 75%);touch-action:pan-y pinch-zoom}
.case-view-image img{display:block;width:100%;height:100%;object-fit:contain;min-height:0;min-width:0;user-select:none;-webkit-user-drag:none}
.case-view-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 26px 20px;border-top:1px solid #e0c79e1f;background:#1b221b}
.case-view-navigation{display:flex;gap:10px;min-width:0}
.case-view-bottom button{min-height:46px;padding:11px 19px;border:1px solid #cfb99555;border-radius:999px;background:transparent;color:#efe6d5;line-height:1.55;font-size:.875rem;font-weight:500;cursor:pointer;white-space:normal;overflow-wrap:anywhere;transition:background .2s,border-color .2s}
.case-view-bottom .case-enquire{color:#37291b;background:#e6d4b3;border-color:#e6d4b3;max-width:45%}
.cases-lightbox button:focus-visible{outline:2px solid #e6d4b3;outline-offset:4px}
@media(hover:hover){.case-view-bottom button:hover,.case-close:hover{background:#bca77e26;border-color:#d5c2a1}.case-view-bottom .case-enquire:hover{background:#f4e6cc}}

@media(max-width:1000px){
  .case-gallery{padding-inline:32px}
  .cases-heading{grid-template-columns:1fr;gap:24px;margin-bottom:36px}
  .cases-intro{max-width:650px;margin:0}
  .case-caption{display:block}
  .case-view{display:block;max-width:none;text-align:start;margin-top:4px}
  .case-title{font-size:1.125rem}
  .case-photo{height:clamp(250px,35vw,370px)}
}
@media(max-width:700px){
  .case-gallery{padding:62px max(34px,calc(env(safe-area-inset-right) + 34px)) 74px 22px}
  .cases-heading{gap:20px;margin-bottom:30px}
  .case-gallery h2{font-size:clamp(2rem,7.6vw,3rem)}
  .cases-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px}
  .case-card-wide{grid-column:span 2}
  .case-card:last-child{grid-column:span 2}
  .case-card:nth-child(9){grid-column:span 2}
  .case-photo{height:clamp(210px,52vw,350px)}
  .case-card:nth-child(9) .case-photo,.case-card:last-child .case-photo{height:clamp(320px,90vw,470px)}
  .case-card-wide .case-photo{height:auto;aspect-ratio:1670/942}
  .case-caption{padding-top:12px}
  .case-expand{width:36px;height:36px;bottom:12px;right:12px}
  .case-view{font-size:.8125rem}
  .cases-lightbox{width:calc(100vw - 20px);height:calc(100dvh - 20px);border-radius:8px}
  .case-view-top{padding:16px;gap:12px}
  .case-view-image{padding:10px}
  .case-view-bottom{display:grid;grid-template-columns:1fr;gap:13px;padding:14px 16px max(16px,env(safe-area-inset-bottom))}
  .case-view-navigation{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .case-view-bottom button{padding:10px 12px}
  .case-view-bottom .case-enquire{max-width:none;width:100%}
}
@media(max-width:380px){.case-gallery{padding-left:18px}.cases-grid{gap:24px 12px}.case-title{font-size:1rem}.case-photo{height:205px}.case-view-top{padding:12px}.case-view-bottom{padding-inline:12px}.case-view-bottom button{font-size:.8125rem}}
@media(max-height:550px) and (min-width:701px){.cases-lightbox{height:calc(100dvh - 20px)}.case-view-top{padding:10px 18px}.case-view-top h2{font-size:1.25rem}.case-view-top .case-view-count{margin-bottom:2px}.case-view-bottom{padding:8px 18px}.case-view-bottom button{min-height:40px;padding:8px 14px}}
@media(prefers-reduced-motion:reduce){.case-photo>img,.case-expand,.case-view-bottom button{transition:none}.case-open:hover .case-photo>img,.case-open:hover .case-expand{transform:none}}
