/* 01. REFERENCE / Tipografski prikaz stvarnih radova dok čekamo fotografije. */
.page-reference main>section { position:relative; isolation:isolate; }
.reference-intro { background:#1b252b; padding-top:36px; }
.reference-intro__grid { display:grid; grid-template-columns:1.05fr 1fr; gap:72px; align-items:end; margin-top:60px; }
.reference-intro h1 { font-size:clamp(44px,5.4vw,76px); line-height:1.07; margin:20px 0 0; }
.reference-intro .text-link { margin-top:24px; }
.reference-lead { margin-top:20px; max-width:640px; color:#bdc9d0; }
/* 02. KARTICE / Broj je redoslijed prikaza, bez izmišljenih fotografija ili pokazatelja. */
.project-record-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.project-record { position:relative; padding:32px; background:#222d33; border:1px solid #ffffff20; border-top:2px solid #d8c56455; scroll-margin-top:120px; }
.project-record__number { display:block; margin-bottom:26px; color:#c9b865; font-size:12px; letter-spacing:.12em; }
.project-record h3 { font-family:var(--font-heading); font-size:clamp(26px,2.5vw,34px); line-height:1.2; margin:0 0 18px; }
.project-record p { color:#c4cfd4; line-height:1.75; margin:0; }
.project-record .text-link { margin-top:24px; }
.project-record:target { border-color:#d8c564a0; }
.project-record-grid--home { grid-template-columns:repeat(3,minmax(0,1fr)); }
/* 03. ARHIVA / Sklopivi popis s izvornim opsegom radova. */
.reference-archive { background:#222d33; }
.reference-list { border-top:1px solid #ffffff30; border-bottom:1px solid #ffffff30; }
.reference-list summary { padding:26px 0; display:flex; justify-content:space-between; gap:20px; cursor:pointer; font-size:18px; list-style:none; }
.reference-list summary::-webkit-details-marker { display:none; }
.reference-list summary span { color:var(--brand-yellow); }
.reference-list[open] summary span { transform:rotate(45deg); }
.reference-list summary:focus-visible { outline:2px solid var(--brand-yellow); outline-offset:5px; }
.reference-list__rows article { display:grid; grid-template-columns:1fr 1.3fr; gap:36px; padding:26px 0; border-top:1px solid #ffffff20; }
.reference-list__rows h3 { font-size:22px; margin:0; }
.reference-list__rows p { color:#c4cfd4; margin:0; }
.page-reference .page-next { background:#182229; }
/* 04. GEOMETRIJA / Rubni motiv ostaje izvan tekstualnih stupaca. */
.reference-intro::before,.reference-featured::before { content:''; position:absolute; pointer-events:none; z-index:-1; right:0; top:60px; width:max(0px,calc((100% - 1220px)/2 - 32px)); height:330px; background:url('../assets/brand/about-facets.svg') left center/230px auto no-repeat; opacity:.78; mask-image:linear-gradient(to right,transparent,#000); }
.reference-featured::before { right:auto; left:0; top:100px; background-image:url('../assets/brand/about-traces.svg'); mask-image:linear-gradient(to left,transparent,#000); }
/* 05. TABLET I MOBITEL / Jedan stupac i prostor za diskretan rubni motiv. */
@media(max-width:1350px) { .reference-intro::before { width:120px; height:52px; top:8px; background-image:url('../assets/brand/symbol-open-contours.svg'); background-size:104px auto; background-position:right -18px center; opacity:.18; } .reference-featured::before { display:none; } }
@media(max-width:960px) { .reference-intro__grid { gap:32px; } .project-record-grid--home { grid-template-columns:1fr; } }
@media(max-width:700px) { .reference-intro__grid { grid-template-columns:1fr; margin-top:38px; } .project-record-grid { grid-template-columns:1fr; } .project-record { padding:26px; } .reference-list__rows article { grid-template-columns:1fr; gap:12px; } }
