/* Scoped refinement: match the existing three featured references. */
.reference-cards{list-style:none;padding:0;margin:64px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.reference-cards .reference-card{display:block;text-decoration:none;color:inherit;background:transparent;border:0;padding:0;box-shadow:none}
.reference-cards .reference-card:hover{background:transparent;border:0;box-shadow:none}
.reference-cards .reference-card figure{margin:0}
.reference-cards .reference-thumb{display:block;overflow:hidden;aspect-ratio:4/3;background:transparent;padding:0;border:0}
.reference-cards .reference-thumb img{display:block;width:100%;height:100%;max-height:none;object-fit:cover}
.reference-cards .reference-card figcaption{font-size:.85rem;color:#c9c6c0;padding:14px 0 0;line-height:1.7}
.reference-cards .reference-card:focus-visible,.reference-gallery a:focus-visible{outline:2px solid var(--red);outline-offset:5px}
.reference-gallery{background:var(--ink);color:#fff}
.reference-gallery .reference-gallery-header{position:static;background:var(--paper);color:var(--ink);border-bottom:1px solid var(--line)}
.reference-gallery .reference-gallery-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:92px;flex-wrap:wrap;padding-top:18px;padding-bottom:18px}
.reference-gallery .reference-gallery-header nav{display:flex;flex-wrap:wrap;gap:18px;font-size:.8rem}
.reference-gallery .reference-gallery-header nav a{text-decoration:none}
.reference-gallery .reference-gallery-intro{padding:54px 0 36px;max-width:1040px}
.reference-gallery .reference-gallery-intro h1{font-size:clamp(2.5rem,5.8vw,5rem);line-height:1.08;overflow-wrap:break-word;margin-bottom:22px}
.reference-gallery .reference-gallery-intro p{color:#c9c6c0;max-width:800px}
.reference-gallery .reference-gallery-jump{display:flex;gap:18px;flex-wrap:wrap;font-size:.8rem;margin-top:24px}
.reference-gallery .reference-gallery-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,28px);padding-bottom:44px;align-items:start}
.reference-gallery .reference-gallery-photo{margin:0;min-width:0;scroll-margin-top:24px}
.reference-gallery .reference-gallery-photo .photo-frame{background:transparent;border:0;padding:0;display:flex;align-items:flex-start;justify-content:center;height:auto;min-height:0}
.reference-gallery .reference-gallery-photo img{display:block;width:auto;height:auto;max-width:100%;max-height:none;object-fit:contain}
.reference-gallery .reference-gallery-photo figcaption{font-size:.8rem;color:#c9c6c0;padding:14px 0;line-height:1.8}
.reference-gallery .reference-gallery-bottom{padding:24px 0 64px}
@media(max-width:1000px){.reference-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.reference-cards{grid-template-columns:1fr;margin-top:40px}.reference-gallery .reference-gallery-photos{grid-template-columns:1fr;gap:24px}.reference-gallery .reference-gallery-intro{padding-top:36px}.reference-gallery .reference-gallery-header .logo img{width:120px;height:auto}.reference-gallery .reference-gallery-header nav{font-size:.75rem}}

/* Image itself is the native full-original link; no visible enlarge label. */
.reference-gallery .reference-gallery-photo .photo-frame > a{display:block;max-width:100%;line-height:0}
