/* Lux Corp IT Division — portfolio ("Realizacje"): hub, project pages and the home-page teaser.
   Builds on lux.css tokens; loaded only by realizacje/*.html and index.html. */

/* ---------- Project cards (extend .post-card so the blog chip filter in site.js works) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-card.post-card { padding: 0; min-height: 0; overflow: hidden; }
.work-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--noir); border-bottom: 1px solid var(--line); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.work-card .post-card__meta { margin-bottom: 16px; }
.work-card h3 { font-size: 1.65rem; margin-bottom: 10px; }
.work-card p { font-size: .9rem; }
.work-card .link-arrow { margin-top: auto; padding-top: 20px; }
.work-card--feature.post-card { grid-column: span 2; }
.work-card--feature .work-card__media { aspect-ratio: 21 / 9; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } .work-card--feature.post-card { grid-column: auto; } .work-card--feature .work-card__media { aspect-ratio: 16 / 9; } }

/* Status pill on the image */
.work-status { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1; background: rgba(250, 248, 243, .94); color: var(--fg-strong); box-shadow: 0 2px 10px -4px rgba(21, 20, 15, .4); }
.work-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3f9b55; }
.work-status--soon::before { background: #d9a227; }
.work-status--private { background: var(--noir); color: var(--gold-soft); }
.work-status--private::before { background: var(--gold-soft); }

/* Designed tile for projects without a public screenshot (internal systems, app collections) */
.work-tile { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 80% at 80% 0%, rgba(216, 195, 155, .22), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(216, 195, 155, .1), transparent 70%), var(--noir); }
.work-tile::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(216, 195, 155, .07) 1px, transparent 1px), linear-gradient(rgba(216, 195, 155, .07) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.work-tile__mark { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fbf9f4; text-align: center; }
.work-tile__mark .i { width: 46px; height: 46px; color: var(--gold-soft); stroke-width: 1.1; }
.work-tile__mark b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
.work-tile__mark small { font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Project page ---------- */
.work-hero .h1-sub { max-width: 34em; }
.browser { position: relative; margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-lg); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #efebe2; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6cfbf; }
.browser__bar span { margin-left: 12px; font-size: .72rem; color: var(--fg-muted); letter-spacing: .02em; }
.browser img { width: 100%; }
.browser .work-tile { position: relative; aspect-ratio: 16 / 7; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0 0 clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.facts > div { padding: 20px 20px 22px 0; }
.facts dt { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); }
.facts dd { margin: 8px 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--fg-strong); }
.facts dd a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.tech { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.prose .tech li { margin: 0; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; line-height: 1.2; color: var(--fg-strong); background: var(--white); }
.prose .tech li::marker { content: none; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0 !important; }
.prose .feature-grid li { margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: var(--radius-sm); background: var(--ivory); font-size: .95rem; line-height: 1.55; }
.prose .feature-grid li b { display: block; margin-bottom: 4px; color: var(--fg-strong); }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.offer-box { margin-top: 2.5em; padding: clamp(26px, 4vw, 40px); border: 1px solid rgba(216, 195, 155, .45); border-radius: var(--radius); color: #e9e5da; background: radial-gradient(70% 90% at 100% 0%, rgba(216, 195, 155, .14), transparent 70%), var(--noir); box-shadow: var(--shadow-lg); }
.prose .offer-box h3 { margin-top: 0; color: #fbf9f4; }
.prose .offer-box p { color: #a7a194; }
.prose .offer-box a.btn { margin-top: 10px; }
.offer-box .btn--primary { --b-bg: #faf8f3; --b-fg: #15140f; --b-bd: #faf8f3; }

/* ---------- Apps page ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0 !important; }
.prose .app-grid > li { margin: 0; display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.app-grid .app-kind { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.prose .app-grid h3 { margin: 10px 0 8px; font-size: 1.45rem; }
.prose .app-grid p { margin: 0; font-size: .9rem; color: var(--fg-muted); }
.app-grid .app-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 16px; font-size: .8rem; }
@media (max-width: 1000px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .app-grid { grid-template-columns: 1fr; } }

.work-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; margin-top: 56px; border-top: 1px solid var(--line); }
.work-shot-note { margin-top: 12px; font-size: .78rem; color: var(--fg-muted); text-align: right; }
