/* projects-beta.css — page-specific styles for /projekty/ and /en/projects/.
   Prefix: pj-. Reuses av2- classes/tokens from styles.css + aerofitting-v2.css (nav, buttons,
   .av2-container/.av2-section/.av2-heading/.av2-eyebrow/.av2-lead/.av2-facts/.av2-fact/
   .av2-subnav/.av2-anchor/.av2-toast/.av2-cta-final*). Never redefines
   an av2- class; only adds pj- rules and layout for structures unique to this page. */

/* 1. Compact dark hero */
.pj-hero {
  position: relative;
  background: linear-gradient(160deg, #0A0A0A 0%, var(--brg) 130%);
  color: #FFFFFF;
  padding: calc(var(--nav-height) + 40px) 0 56px;
  overflow: hidden;
}
.pj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 48px);
  pointer-events: none;
}
.pj-hero .av2-container { position: relative; z-index: 1; }
.pj-hero-title {
  margin-top: 8px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #FFFFFF;
}
.pj-hero .av2-hero-lead { margin-top: 20px; }

/* 2. Index of project cards */
.pj-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.pj-index-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--av2-radius, 16px);
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--av2-ease, ease), box-shadow 200ms var(--av2-ease, ease), border-color 200ms;
}
.pj-index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--gold);
}
.pj-index-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.pj-index-media picture { display: block; width: 100%; height: 100%; }
.pj-index-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-index-media figcaption { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 11px; }
.pj-index-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pj-index-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.pj-index-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--text-primary); }
.pj-index-body p { font-size: 14px; line-height: 1.55; color: var(--text-secondary); flex: 1; }
.pj-index-cta {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

/* 3. Case sections */
.pj-case-year {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.av2-section--dark .pj-case-year { color: rgba(255,255,255,0.6); }

.pj-case-facts { margin-top: 32px; margin-bottom: 40px; }

.pj-case-media {
  margin: 0 0 40px;
  border-radius: var(--av2-radius, 16px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.pj-case-media picture { display: block; width: 100%; aspect-ratio: 16 / 9; }
.pj-case-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pj-case-media--portrait { max-width: 720px; margin-inline: auto; }
.pj-case-media--portrait picture { aspect-ratio: auto; }
.pj-case-media--portrait img { width: 100%; height: auto; }
.pj-case-media figcaption { padding: 8px 12px; color: var(--text-muted); font-size: 12px; }

.pj-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.pj-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.pj-col p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.av2-section--dark .pj-col p { color: rgba(255,255,255,0.82); }
.pj-col p:last-child { margin-bottom: 0; }

/* 4. Athlete strip */
.pj-athletes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.av2-section--dark .pj-athletes { border-top-color: rgba(255,255,255,0.15); }
.pj-athlete { display: flex; align-items: center; gap: 12px; }
.pj-athlete-picture { display: block; width: 48px; height: 48px; flex-shrink: 0; }
.pj-athlete-picture img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.av2-section--dark .pj-athlete-picture img { border-color: rgba(255,255,255,0.25); }
.pj-athlete-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.av2-section--dark .pj-athlete-name { color: #FFFFFF; }
.pj-athlete-achievement { font-size: 12px; color: var(--text-muted); max-width: 32ch; }
.av2-section--dark .pj-athlete-achievement { color: rgba(255,255,255,0.65); }

.pj-case-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* 5. Responsive */
@media (min-width: 640px) {
  .pj-index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pj-index-grid { grid-template-columns: repeat(4, 1fr); }
  .pj-columns { grid-template-columns: 1fr 1fr; gap: 56px; }
}
