/* Reference portfolio. Scoped to this page; original project assets retained. */
.references-page .ref-breadcrumb{max-width:1200px;margin:0 auto;padding:17px 30px 0;display:flex;gap:10px;color:var(--muted);font-size:11px}
.ref-intro{max-width:1200px;margin:auto;padding:28px 30px 30px;display:grid;grid-template-columns:.82fr 1.18fr;gap:44px;align-items:center}
.ref-intro-copy{padding:5px 0 24px}
.ref-intro .eyebrow{font-size:10px;margin-bottom:17px}
.ref-intro h1{font-size:clamp(38px,4.1vw,54px);line-height:1.08;max-width:13ch;margin-bottom:18px}
.ref-intro-text{font-size:15px;line-height:1.75;max-width:38ch;color:var(--muted);margin-bottom:23px}
.ref-intro-note{font-size:11px;color:var(--muted);margin:17px 0 0}
.ref-feature img{width:100%;height:auto;aspect-ratio:2000/1126;object-fit:contain;background:var(--sand)}
.ref-feature figcaption{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;padding:16px 0 0}
.ref-category{display:block;color:var(--accent);font-size:10px;font-weight:600;letter-spacing:.055em;margin-bottom:7px}
.ref-feature h2{font-size:23px;line-height:1.25;margin-bottom:6px;letter-spacing:-.03em}
.ref-feature figcaption p{font-size:12px;line-height:1.6;margin:0;max-width:44ch}
.ref-detail-link{display:inline-flex;gap:12px;align-items:center;color:var(--navy);font-size:12px;font-weight:600;line-height:1.5;white-space:normal}
.ref-feature .ref-detail-link{flex:none;margin-top:3px}
.references-page .ref-jump-nav{max-width:1140px;margin:0 auto;padding:17px 0;display:flex;gap:32px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);align-items:center;font-size:12px;font-weight:600}
.ref-jump-nav a{display:inline-flex;gap:14px;align-items:center}
.ref-jump-nav>span{margin-left:auto;color:var(--muted);font-size:10px;font-weight:400}
.ref-section{max-width:1200px;margin:auto;padding:42px 30px}
.ref-section-head{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:24px}
.ref-section-head .eyebrow{font-size:10px;margin-bottom:9px}
.ref-section-head h2{font-size:clamp(26px,2.6vw,34px);max-width:23ch;line-height:1.16;margin:0}
.ref-section-head>p{max-width:30ch;margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.ref-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px}
.ref-card{min-width:0}
.ref-card figure>img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#ebe7df}
.ref-gallery .ref-card:not(:last-child) figure>img{object-fit:cover}
.ref-card figcaption{padding:14px 0 0}
.ref-card h3,.ref-card-copy h3,.ref-collage h3{font-size:20px;line-height:1.25;letter-spacing:-.025em;margin:0 0 8px}
.ref-card figcaption p{font-size:12px;line-height:1.7;margin:0 0 11px;color:var(--muted)}
.ref-image-note{display:block;font-size:9px;color:var(--muted);margin:-2px 0 10px}
.ref-repair-band{background:#f1ede6;border-top:1px solid #e3ddd3;border-bottom:1px solid #e3ddd3}
.ref-repair-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.ref-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center;height:300px;background:#e7e1d7}
.ref-pair figure{position:relative;min-width:0}
.ref-pair img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.ref-pair figcaption{position:absolute;bottom:8px;left:8px;padding:3px 9px;background:var(--paper);color:var(--ink);font-size:10px;font-weight:600}
.ref-card-copy,.ref-collage figcaption{padding:16px 0 0}
.ref-collage>img{width:100%;height:300px;object-fit:contain;background:#e7e1d7}
.ref-process-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.ref-process-grid .ref-card figure>img{aspect-ratio:3/2;object-fit:contain}
.ref-process-grid .ref-card figcaption{max-width:58ch}
.ref-photo-note{max-width:none;font-size:11px;color:var(--muted);line-height:1.7;border-top:1px solid var(--line);padding-top:18px;margin:28px 0 0}
.ref-contact{max-width:1140px;padding:35px 36px;gap:32px}
.ref-contact h2{font-size:30px;max-width:23ch;line-height:1.2;margin-bottom:12px}
.ref-contact p:not(.eyebrow){font-size:13px;margin:0}
.references-page [id]{scroll-margin-top:104px}
.references-page img[data-lightbox]{cursor:zoom-in}
/* Existing lightbox script uses these class names. */
.references-page.lightbox-open{overflow:hidden}
.references-page .image-lightbox{position:fixed;inset:0;z-index:150;background:#11151aef;display:flex;align-items:center;justify-content:center;padding:60px 70px 40px}
.references-page .image-lightbox-stage{max-width:1100px;min-width:0;text-align:center}
.references-page .image-lightbox-stage img{max-height:76vh;max-width:100%;width:auto;height:auto;object-fit:contain;margin:auto}
.references-page .image-lightbox-stage figcaption{color:#f5f2ec;font-size:12px;max-width:85ch;margin:0 auto;padding-top:15px}
.references-page .image-lightbox button{position:absolute;color:white;border:1px solid #ffffff50;background:#ffffff0a;width:44px;height:44px;border-radius:50%;line-height:1;font-size:28px;display:flex;align-items:center;justify-content:center}
.references-page .image-lightbox-close{top:15px;right:20px}
.references-page .image-lightbox-prev{left:15px;top:48%}
.references-page .image-lightbox-next{right:15px;top:48%}
@media(max-width:1000px){.ref-intro{gap:28px;grid-template-columns:.85fr 1.15fr}.ref-feature figcaption{display:block}.ref-feature .ref-detail-link{margin-top:9px}.ref-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.references-page .ref-jump-nav{margin:0 30px;gap:24px}.ref-jump-nav>span{display:none}.ref-pair,.ref-collage>img{height:245px}}
@media(max-width:760px){
 .references-page .ref-breadcrumb{padding:13px 21px 0}
 .ref-intro{grid-template-columns:1fr;gap:22px;padding:25px 21px 26px}
 .ref-intro-copy{padding:0}
 .ref-intro h1{font-size:39px;max-width:15ch;margin-bottom:13px}
 .ref-intro-text{font-size:14px;max-width:40ch;margin-bottom:17px}
 .ref-intro-note{margin-top:12px}
 .ref-feature figcaption{display:block;padding-top:12px}
 .ref-feature h2{font-size:22px}
 .references-page .ref-jump-nav{margin:0 21px;padding:14px 0;gap:13px 21px;flex-wrap:wrap;font-size:11px}
 .ref-jump-nav a{gap:7px}
 .ref-section{padding:32px 21px}
 .ref-section-head{display:block;margin-bottom:20px}
 .ref-section-head h2{font-size:28px;max-width:22ch}
 .ref-section-head>p{margin-top:10px;max-width:44ch}
 .ref-gallery{gap:25px 16px}
 .ref-card h3,.ref-card-copy h3,.ref-collage h3{font-size:19px}
 .ref-repair-grid,.ref-process-grid{grid-template-columns:1fr;gap:26px}
 .ref-pair,.ref-collage>img{height:auto;min-height:0;aspect-ratio:3/2}
 .ref-contact{margin:0 12px;padding:27px 22px;grid-template-columns:1fr;gap:20px}
 .ref-contact h2{font-size:28px}
 .references-page [id]{scroll-margin-top:84px}
 .references-page .image-lightbox{padding:60px 45px 30px}
 .references-page .image-lightbox-stage img{max-height:70vh}
 .references-page .image-lightbox button{width:34px;height:34px;font-size:24px}
 .references-page .image-lightbox-prev{left:5px}.references-page .image-lightbox-next{right:5px}
}
@media(max-width:520px){.ref-gallery{grid-template-columns:1fr}.ref-card figure>img{aspect-ratio:4/3}.ref-process-grid .ref-card figure>img{aspect-ratio:3/2}}

.ref-repair-comparison img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.ref-repair-comparison figcaption{font-size:10px;padding-top:8px}
.ref-repair-card .comparison-controls{margin:10px 0 0;gap:6px}
.ref-repair-card .comparison-controls button{padding:6px 18px;font-size:11px;min-height:35px}
.ref-repair-grid .ref-collage>img{height:auto;aspect-ratio:3/2;object-fit:contain}
