/* realizacje-v2.css, "Indeks" variant of the portfolio page.
 Reuses .sn-r2-* editorial vocabulary from single-portfolio-v2.css:
 numbered chapters, brass rules, italic emphasis, dark quote interlude.

 Adds .sn-rl2-* classes for realizacje-specific bits:
 the hero index card, editorial portfolio grid, "Branże" breakdown. */

/* ─── Page wrapper ──────────────────────────────────────── */
.sn-rl2-main {
 background: var(--bone-100);
 color: var(--fg-on-light-1);
 --rl2-rule: rgba(20, 17, 13, 0.12);
 --rl2-rule-dark: rgba(255, 255, 255, 0.14);
}
.sn-rl2-main > .sn-r2-hero { padding-top: clamp(56px, 6vw, 88px); }

/* ─── HERO, "Index card" placeholder on the right ─────── */
.sn-rl2-hero-card {
 position: relative;
 background:
 radial-gradient(circle at 100% 0%, rgba(176, 144, 88, 0.10) 0%, transparent 60%),
 var(--ink-800);
 border: 1px solid rgba(255, 255, 255, 0.06);
 border-radius: var(--radius-tight);
 aspect-ratio: 1 / 1;
 width: 100%;
 padding: clamp(28px, 3vw, 44px);
 display: flex;
 flex-direction: column;
 overflow: hidden;
}
.sn-rl2-hero-card::before {
 /* Editorial paper texture */
 content: "";
 position: absolute;
 inset: 0;
 background-image: repeating-linear-gradient(
 135deg,
 transparent 0,
 transparent 22px,
 rgba(255, 255, 255, 0.018) 22px,
 rgba(255, 255, 255, 0.018) 23px
 );
 pointer-events: none;
}
.sn-rl2-hero-card-fig {
 position: absolute;
 left: clamp(28px, 3vw, 44px);
 top: clamp(28px, 3vw, 44px);
 display: flex;
 flex-direction: column;
 gap: 2px;
 z-index: 1;
 max-width: 45%;
}
.sn-rl2-hero-card-fig .sn-r2-fig-no { color: var(--brass-400); }
.sn-rl2-hero-card-fig .sn-r2-fig-text { color: var(--fg-on-dark-2); }
.sn-rl2-hero-card-stamp {
 position: absolute;
 top: clamp(28px, 3vw, 44px);
 right: clamp(28px, 3vw, 44px);
 display: flex;
 flex-direction: column;
 align-items: flex-end;
 gap: 4px;
 z-index: 1;
}
.sn-rl2-hero-card-stamp-no {
 font-family: var(--font-display);
 font-weight: 900;
 font-style: italic;
 font-size: clamp(40px, 5vw, 64px);
 line-height: 0.85;
 letter-spacing: -0.04em;
 color: var(--brass-500);
 font-variant-numeric: tabular-nums;
 text-align: right;
}
.sn-rl2-hero-card-stamp-lbl {
 font-family: var(--font-body);
 font-size: var(--fs-nano);
 font-weight: 700;
 letter-spacing: var(--ls-loose);
 text-transform: uppercase;
 color: var(--fg-on-dark-3);
}
.sn-rl2-hero-card-spread {
 position: relative;
 margin-top: auto;
 padding-top: clamp(24px, 3vw, 32px);
 border-top: 1px solid rgba(255, 255, 255, 0.10);
 display: flex;
 flex-direction: column;
 gap: 12px;
 z-index: 1;
}
.sn-rl2-hero-card-eyebrow {
 font-family: var(--font-body);
 font-size: var(--fs-nano);
 font-weight: 700;
 letter-spacing: var(--ls-loose);
 text-transform: uppercase;
 color: var(--brass-400);
 margin-bottom: 6px;
}
.sn-rl2-hero-card-row {
 display: grid;
 grid-template-columns: 1fr auto;
 align-items: baseline;
 gap: 16px;
 font-family: var(--font-heading);
 font-size: 14px;
 color: var(--fg-on-dark-1);
 padding-bottom: 10px;
 border-bottom: 1px dotted rgba(255, 255, 255, 0.10);
}
.sn-rl2-hero-card-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sn-rl2-hero-card-row-lbl { color: var(--fg-on-dark-2); }
.sn-rl2-hero-card-row-val {
 font-family: var(--font-display);
 font-weight: 900;
 font-style: italic;
 color: var(--brass-400);
 font-size: 18px;
 letter-spacing: -0.01em;
 font-variant-numeric: tabular-nums;
}

/* ─── Chapter 01, Indeks (the grid, on bone) ─────────── */
.sn-rl2-indeks {
 padding: clamp(72px, 8vw, 112px) 0 clamp(80px, 9vw, 120px);
 background: var(--bone-100);
}
.sn-rl2-indeks-h {
 font-family: var(--font-display);
 font-weight: 900;
 font-size: clamp(32px, 4vw, 56px);
 line-height: 1.05;
 letter-spacing: -0.025em;
 color: var(--fg-on-light-1);
 margin: 0 0 clamp(28px, 3vw, 40px);
 max-width: 18ch;
}
.sn-rl2-indeks-h em {
 font-style: italic;
 color: var(--brass-600);
 font-weight: 900;
}
.sn-rl2-indeks-lede {
 font-family: var(--font-heading);
 font-weight: 400;
 font-size: clamp(16px, 1.3vw, 18px);
 line-height: 1.55;
 color: var(--fg-on-light-2);
 margin: 0 0 clamp(40px, 5vw, 56px);
 max-width: 64ch;
 text-wrap: pretty;
}

/* Filter rail, editorial */
.sn-rl2-filters {
 display: flex;
 align-items: stretch;
 gap: 0;
 flex-wrap: wrap;
 margin: 0 0 clamp(32px, 4vw, 48px);
 border-top: 1px solid var(--rl2-rule);
 border-bottom: 1px solid var(--rl2-rule);
 padding: 0;
}
.sn-rl2-filter-lbl {
 font-family: var(--font-body);
 font-size: var(--fs-nano);
 font-weight: 700;
 letter-spacing: var(--ls-loose);
 text-transform: uppercase;
 color: var(--brass-600);
 padding: 18px 24px 18px 0;
 display: inline-flex;
 align-items: center;
 border-right: 1px solid var(--rl2-rule);
}
.sn-rl2-chip {
 display: inline-flex;
 align-items: baseline;
 gap: 10px;
 padding: 18px 22px;
 background: transparent;
 border: 0;
 border-right: 1px solid var(--rl2-rule);
 color: var(--fg-on-light-2);
 font-family: var(--font-heading);
 font-weight: 500;
 font-size: 14px;
 letter-spacing: 0;
 cursor: pointer;
 transition: background 200ms, color 200ms;
}
.sn-rl2-chip:hover { background: rgba(176,144,88,0.06); color: var(--fg-on-light-1); }
.sn-rl2-chip.is-active {
 background: var(--ink-900);
 color: #fff;
}
.sn-rl2-chip.is-active .sn-rl2-chip-count {
 color: var(--brass-400);
}
.sn-rl2-chip-count {
 font-family: var(--font-display);
 font-weight: 700;
 font-style: italic;
 font-size: 12px;
 color: var(--brass-600);
 letter-spacing: -0.01em;
 font-variant-numeric: tabular-nums;
}

/* Grid, editorial cards with Fig. captions */
.sn-rl2-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: clamp(20px, 2vw, 28px) clamp(16px, 1.5vw, 22px);
}
.sn-rl2-card {
 display: flex;
 flex-direction: column;
 text-decoration: none;
 color: inherit;
 position: relative;
 transition: transform 280ms var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.sn-rl2-card:hover { transform: translateY(-3px); }

.sn-rl2-photo {
 position: relative;
 aspect-ratio: 1 / 1;
 overflow: hidden;
 background: var(--ink-800);
 border: 1px solid var(--rl2-rule);
 border-radius: var(--radius-tight);
}
.sn-rl2-photo img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 transition: transform 600ms var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.sn-rl2-card:hover .sn-rl2-photo img { transform: scale(1.03); }

/* Fig. NN stamp on top-left of photo */
.sn-rl2-photo-fig {
 position: absolute;
 top: 12px;
 left: 12px;
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 6px 10px;
 background: rgba(20, 17, 13, 0.78);
 backdrop-filter: blur(6px);
 -webkit-backdrop-filter: blur(6px);
 border-radius: var(--radius-tight);
 z-index: 2;
}
.sn-rl2-photo-fig-no {
 font-family: var(--font-display);
 font-weight: 900;
 font-style: italic;
 font-size: 13px;
 color: var(--brass-400);
 letter-spacing: -0.01em;
 font-variant-numeric: tabular-nums;
 line-height: 1;
}
.sn-rl2-photo-fig-lbl {
 font-family: var(--font-body);
 font-size: 9px;
 font-weight: 700;
 letter-spacing: var(--ls-eyebrow);
 text-transform: uppercase;
 color: var(--fg-on-dark-2);
 line-height: 1;
}

/* Hover overlay, editorial, no gradient slabs */
.sn-rl2-photo-overlay {
 position: absolute;
 inset: 0;
 display: flex;
 align-items: flex-end;
 padding: 14px;
 background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
 opacity: 0;
 transition: opacity 280ms var(--ease-out);
 pointer-events: none;
}
.sn-rl2-card:hover .sn-rl2-photo-overlay { opacity: 1; }
.sn-rl2-photo-tech {
 font-family: var(--font-body);
 font-size: var(--fs-nano);
 font-weight: 700;
 letter-spacing: var(--ls-eyebrow);
 text-transform: uppercase;
 color: #fff;
 background: var(--brass-500);
 padding: 6px 10px;
 border-radius: var(--radius-tight);
 line-height: 1;
}

/* Caption (under the photo), editorial: client + segment */
.sn-rl2-cap {
 padding: 14px 2px 0;
 display: flex;
 flex-direction: column;
 gap: 4px;
}
.sn-rl2-cap-name {
 font-family: var(--font-display);
 font-weight: 700;
 font-style: italic;
 font-size: 17px;
 line-height: 1.15;
 letter-spacing: -0.015em;
 color: var(--fg-on-light-1);
 margin: 0;
 text-wrap: balance;
}
.sn-rl2-cap-meta {
 font-family: var(--font-body);
 font-size: 12px;
 color: var(--fg-on-light-3);
 margin: 0;
 letter-spacing: 0;
 display: flex;
 align-items: baseline;
 gap: 6px;
}
.sn-rl2-cap-meta strong {
 color: var(--brass-600);
 font-weight: 700;
 font-variant: small-caps;
 letter-spacing: 0.06em;
}
.sn-rl2-cap-meta-sep { opacity: 0.4; }

/* ─── "Branże" breakdown (chapter 03) ───────────────────── */
.sn-rl2-branze {
 padding: clamp(80px, 9vw, 120px) 0;
 background: var(--ink-900);
 color: var(--fg-on-dark-1);
}
.sn-rl2-branze-h {
 font-family: var(--font-display);
 font-weight: 900;
 font-size: clamp(32px, 4vw, 56px);
 line-height: 1.05;
 letter-spacing: -0.025em;
 color: var(--fg-on-dark-1);
 margin: 0 0 clamp(16px, 2vw, 28px);
 max-width: 18ch;
}
.sn-rl2-branze-h em { font-style: italic; color: var(--brass-400); font-weight: 900; }
.sn-rl2-branze-lede {
 font-family: var(--font-heading);
 font-size: clamp(16px, 1.4vw, 19px);
 line-height: 1.55;
 color: var(--fg-on-dark-3);
 margin: 0 0 clamp(40px, 5vw, 56px);
 max-width: 56ch;
 text-wrap: pretty;
}
.sn-rl2-branze-list {
 list-style: none;
 padding: 0;
 margin: 0;
 display: flex;
 flex-direction: column;
 border-top: 1px solid var(--rl2-rule-dark);
}
.sn-rl2-branze-item {
 display: grid;
 grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr) auto;
 gap: clamp(20px, 2vw, 32px);
 align-items: baseline;
 padding: clamp(22px, 2.4vw, 32px) 0;
 border-bottom: 1px solid var(--rl2-rule-dark);
 transition: padding-left 280ms var(--ease-out);
}
.sn-rl2-branze-item:hover { padding-left: 8px; }
.sn-rl2-branze-num {
 font-family: var(--font-display);
 font-weight: 900;
 font-style: italic;
 font-size: clamp(28px, 2.6vw, 38px);
 line-height: 1;
 letter-spacing: -0.02em;
 color: var(--brass-400);
 font-variant-numeric: tabular-nums;
}
.sn-rl2-branze-name {
 font-family: var(--font-display);
 font-weight: 700;
 font-size: clamp(22px, 2vw, 28px);
 line-height: 1.1;
 letter-spacing: -0.015em;
 color: var(--fg-on-dark-1);
 margin: 0;
}
.sn-rl2-branze-body {
 font-family: var(--font-body);
 font-size: 14px;
 line-height: 1.55;
 color: var(--fg-on-dark-3);
 margin: 0;
 text-wrap: pretty;
}
.sn-rl2-branze-body strong { color: var(--fg-on-dark-2); font-weight: 600; }
.sn-rl2-branze-count {
 font-family: var(--font-display);
 font-weight: 700;
 font-style: italic;
 font-size: clamp(20px, 1.8vw, 26px);
 letter-spacing: -0.01em;
 color: var(--brass-400);
 font-variant-numeric: tabular-nums;
 white-space: nowrap;
}
.sn-rl2-branze-count-sub {
 font-family: var(--font-body);
 font-size: var(--fs-nano);
 font-weight: 700;
 letter-spacing: var(--ls-eyebrow);
 text-transform: uppercase;
 color: var(--fg-on-dark-3);
 display: block;
 margin-top: 2px;
 font-style: normal;
}

/* ─── Trust band on bone (chapter 04) ───────────────────── */
.sn-rl2-trust {
 padding: clamp(80px, 9vw, 120px) 0;
 background: var(--bone-100);
}
.sn-rl2-trust-h {
 font-family: var(--font-display);
 font-weight: 900;
 font-size: clamp(32px, 4vw, 56px);
 line-height: 1.05;
 letter-spacing: -0.025em;
 color: var(--fg-on-light-1);
 margin: 0 0 clamp(16px, 2vw, 28px);
 max-width: 18ch;
}
.sn-rl2-trust-h em { font-style: italic; color: var(--brass-600); font-weight: 900; }
.sn-rl2-trust-lede {
 font-family: var(--font-heading);
 font-size: clamp(16px, 1.4vw, 19px);
 line-height: 1.55;
 color: var(--fg-on-light-2);
 margin: 0 0 clamp(40px, 5vw, 56px);
 max-width: 56ch;
 text-wrap: pretty;
}
.sn-rl2-trust-grid {
 list-style: none;
 padding: 0;
 margin: 0;
 display: grid;
 grid-template-columns: repeat(6, 1fr);
 border-top: 1px solid var(--rl2-rule);
 border-left: 1px solid var(--rl2-rule);
}
.sn-rl2-trust-mark {
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 120px;
 padding: 20px 24px;
 border-right: 1px solid var(--rl2-rule);
 border-bottom: 1px solid var(--rl2-rule);
 color: var(--fg-on-light-3);
 opacity: 0.7;
 filter: grayscale(1);
 transition: opacity 240ms var(--ease-out), color 240ms var(--ease-out), background 240ms;
}
.sn-rl2-trust-mark:hover {
 opacity: 1;
 color: var(--fg-on-light-1);
 background: #fff;
}
.sn-rl2-trust-mark svg {
 width: 100%;
 height: auto;
 max-height: 64px;
 display: block;
}
.sn-rl2-trust-foot {
 margin: clamp(28px, 3vw, 36px) 0 0;
 font-family: var(--font-body);
 font-size: 13px;
 color: var(--fg-on-light-3);
 letter-spacing: 0;
 text-align: center;
 text-wrap: pretty;
}
.sn-rl2-trust-foot strong { color: var(--fg-on-light-2); font-weight: 600; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
 .sn-rl2-grid { grid-template-columns: repeat(3, 1fr); }
 .sn-rl2-trust-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 880px) {
 .sn-rl2-branze-item {
 grid-template-columns: 48px minmax(0, 1fr);
 grid-template-rows: auto auto auto;
 gap: 8px 20px;
 }
 .sn-rl2-branze-num { grid-row: span 3; }
 .sn-rl2-branze-count { grid-column: 2; }
}
@media (max-width: 720px) {
 .sn-rl2-grid { grid-template-columns: repeat(2, 1fr); }
 .sn-rl2-trust-grid { grid-template-columns: repeat(2, 1fr); }
 .sn-rl2-filter-lbl { width: 100%; border-right: 0; border-bottom: 1px solid var(--rl2-rule); padding: 14px 0; }
 .sn-rl2-chip { padding: 14px 16px; font-size: 13px; }
}
