/* ==========================================================
   MIREK BARAN — PORTFOLIO
   ----------------------------------------------------------
   Spis treści:
   1. Tokens (kolory, typografia, spacing)
   2. Reset / base
   3. Layout utilities
   4. Nav
   5. Hero
   6. Section header ("ticket" signature element)
   7. Introduction
   8. Games (game cards)
   9. Publicity + Courses (timeline)
   10. Companies (logo grid)
   11. Skills
   12. Links
   13. References
   14. (wolne — ksywki przeniesione do sekcji Skills)
   15. Contact + footer
   16. Reveal-on-scroll + misc
   17. Responsive
   ========================================================== */

/* ---------- 1. TOKENS ------------------------------------ */
:root {
  /* Color: deep purple-black stage lifted straight from the
     producer's desk photo, brass as the single accent. */
  --bg: #120a1e;
  --bg-soft: #17101f;
  --panel: #1c1230;
  --panel-2: #241a3a;
  --panel-border: rgba(201, 161, 90, 0.16);
  --panel-border-strong: rgba(201, 161, 90, 0.35);

  --brass: #c9a15a;
  --brass-bright: #e8c37e;
  --brass-dim: #8a7148;

  --ink: #f4efe4;
  --ink-muted: #b6a9c9;
  --ink-faint: #7c7093;

  --success: #8fae72;
  --danger: #c07868;

  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 10px 24px -12px rgba(0, 0, 0, 0.5);

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --nav-h: 76px;
}

/* ---------- 2. RESET / BASE ------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--brass); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* subtle film-grain / noise wash across the whole page so flat
   dark panels don't look like plain CSS boxes */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- 3. LAYOUT UTILITIES ---------------------------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; scroll-margin-top: var(--nav-h); }

.section-pad {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.section-pad + .section-pad {
  border-top: 1px solid var(--panel-border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.lede {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 62ch;
  margin-top: 14px;
}

/* ---------- 4. NAV ------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(18, 10, 30, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--panel-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 1440px;
  padding-left: 26px;
  padding-right: 26px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brass);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  padding: 9px 9px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a::before { content: "["; color: var(--brass-dim); margin-right: 3px; }
.nav-links a::after { content: "]"; color: var(--brass-dim); margin-left: 3px; }

.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--brass-bright);
  background: rgba(201, 161, 90, 0.1);
}
.nav-links a.active::before,
.nav-links a.active::after { color: var(--brass-bright); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid var(--panel-border-strong);
  padding: 9px 16px;
  border-radius: 100px;
  color: var(--brass-bright);
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.nav-cta:hover { border-color: var(--brass); background: rgba(201, 161, 90, 0.08); }

.nav-toggle { display: none; }

/* ---------- 5. HERO ------------------------------------------ */
/* .hero-text i .exp-body to kolumny w gridach rodziców; min-width:0
   pozwala im się kurczyć zamiast rozpychać siatkę długim tekstem. */
.hero-text { min-width: 0; }
.hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 88px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(18,10,30,0.55) 0%, rgba(18,10,30,0.88) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18,10,30,0.96) 0%, rgba(18,10,30,0.55) 55%, rgba(18,10,30,0.85) 100%),
    url("../assets/images/profile/hero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.05);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(143, 174, 114, 0.2);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--brass-bright); }

.hero-role {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

.hero-mission {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  color: #1a1006;
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost {
  border: 1px solid var(--panel-border-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brass); background: rgba(201,161,90,0.06); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
}
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.hero-portrait {
  position: relative;
  justify-self: center;
}
.hero-portrait-frame {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(from 140deg, var(--brass-bright), var(--brass-dim), var(--brass-bright));
  box-shadow: var(--shadow-lg);
}
.hero-portrait-frame img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg);
}
.hero-portrait-cta {
  position: absolute;
  bottom: 6px;
  right: -6px;
  white-space: nowrap;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-sm);
}

/* ---------- 6. SECTION HEADER (signature ticket element) --- */
.ticket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--panel-border-strong);
  background: var(--panel);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.ticket .id { color: var(--brass-bright); font-weight: 600; }
.ticket .status { color: var(--ink-faint); }
.ticket .status b { color: var(--success); font-weight: 500; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 44px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- 7. INTRODUCTION ---------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.intro-body p {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.75;
}
.intro-body p + p { margin-top: 18px; }
.intro-body strong { color: var(--ink); font-weight: 600; }

.intro-side {
  border-left: 2px solid var(--panel-border-strong);
  padding-left: 28px;
}
.intro-side .k { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.intro-side .v { font-family: var(--font-display); font-size: 20px; margin-top: 4px; margin-bottom: 22px; }

/* ---------- 7b. EXPERIENCE TIMELINE ---------------------------- */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.exp-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}
.exp-item:hover { border-color: var(--panel-border-strong); }

.exp-body { min-width: 0; }

.exp-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.exp-logo {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: #f7f4ec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.exp-logo:hover, .exp-logo:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--brass); }
.exp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.exp-logo.fallback {
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-border-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--brass-bright);
}
.exp-logo.fallback:hover, .exp-logo.fallback:focus-visible { border-color: var(--brass); }

.exp-company {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.exp-period-top {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.exp-summary {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 68ch;
}

/* ---------- 7c. CAREER RAIL — roles as connected nodes -------- */
/* Pionowa oś łącząca role wewnątrz jednej firmy. Kropka na osi jest
   wypełniona brązem TYLKO dla roli aktywnej (.is-current) — patrz
   isRoleCurrent() w main.js. Zakończona rola zawsze ma pustą, samą
   obrysowaną kropkę, niezależnie od pozycji na liście. */
.v2-roles {
  position: relative;
  margin-top: 18px;
  padding-left: 24px;
}
.v2-roles::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--panel-border-strong);
}
.v2-role {
  position: relative;
  padding-bottom: 22px;
}
.v2-role:last-child { padding-bottom: 0; }

.v2-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--panel-border-strong);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
/* Wypełniona, świecąca kropka — tylko role realnie trwające "present". */
.v2-role.is-current .v2-dot {
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.18);
}

.v2-role-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.v2-role-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.v2-role-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.v2-role.is-current .v2-role-period { color: var(--brass-bright); }

.v2-achievements {
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v2-achievements li {
  list-style: none;
  font-size: 13px;
  color: var(--ink-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.v2-achievements li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* "Worked on" — teraz gniazdowane pod KAŻDĄ rolą (nie raz na firmę) */
.exp-games {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.exp-games .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.exp-game-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--panel-border-strong);
  padding: 6px 13px;
  border-radius: 100px;
  transition: all 0.18s ease;
}
.exp-game-chip:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: #1a1006;
  font-weight: 600;
  transform: translateY(-2px);
}

/* ---------- 8. GAMES / GAME CARDS ----------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  align-items: center;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--panel-border-strong);
  background: var(--panel);
  color: var(--ink-faint);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.filter-reset:hover { border-color: var(--brass); color: var(--brass-bright); background: var(--panel-2); }

.filter-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-left: auto;
}

/* --- custom dropdown ("Company: All ▾") --- */
.dd { position: relative; }
.dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--panel-border-strong);
  background: var(--panel);
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.dd-toggle:hover { border-color: var(--brass); background: var(--panel-2); }
.dd.open .dd-toggle { border-color: var(--brass); color: var(--brass-bright); }
.dd-toggle .dd-label { color: var(--ink-faint); }
.dd-toggle .dd-value { color: var(--brass-bright); font-weight: 600; }
.dd-toggle .dd-caret { font-size: 10px; color: var(--ink-faint); transition: transform 0.2s ease; }
.dd.open .dd-toggle .dd-caret { transform: rotate(180deg); }

.dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--panel-2);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.dd.open .dd-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }

.dd-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.dd-item:hover { background: rgba(201, 161, 90, 0.1); color: var(--ink); }
.dd-item.active { color: var(--brass-bright); font-weight: 600; }

/* --- game cards --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  cursor: pointer;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow .28s ease;
}
.game-card:hover, .game-card:focus-visible { transform: translateY(-5px); border-color: var(--panel-border-strong); box-shadow: var(--shadow-sm); }
/* .pulse dodaje main.js po skoku z sekcji Experience (highlightGameCard). */
.game-card.pulse { animation: cardPulse 1.4s ease; }
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,161,90,0); }
  25% { box-shadow: 0 0 0 6px rgba(201,161,90,0.35); }
}

.game-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.game-card:hover img { transform: scale(1.06); }

/* Gradient podniesiony wyżej (was 35%) — kafelek teraz rezerwuje miejsce
   na hover-meta NAD tytułem, więc scrim musi kryć więcej powierzchni,
   inaczej tekst na jasnych okładkach traci czytelność. */
.game-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,10,30,0) 12%, rgba(18,10,30,0.55) 45%, rgba(18,10,30,0.96) 100%);
}

.game-card .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
}
/* .hover-meta (pełna data premiery + oceny) siedzi NAD tytułem i zawsze
   rezerwuje swoją wysokość w layoucie (nawet gdy opacity:0) — to właśnie
   spycha .name/.dev nieco niżej, w stronę dołu kafelka, bez osobnego hacka.
   Margines mniejszy niż u .row poniżej (6px vs 10px) — tytuł ma duży
   font wyświetlaczowy z większym line-height/ascent, więc "wizualna"
   przerwa nad nim i tak wygląda na większą niż ta sama liczba px pod
   .dev (mały font mono); to koryguje ten efekt optyczny. */
.game-card .hover-meta {
  margin-top: 0;
  margin-bottom: 6px;
}
.game-card .release-full { color: var(--brass-bright); font-weight: 600; }
.game-card .name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.22;
}
.game-card .dev {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brass-bright);
  margin-top: 5px;
}
.game-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
/* Konsole zjeżdżają lekko w dół, data/oceny lekko w górę — kierunek
   ruchu podkreśla, że jeden blok "wjeżdża" od góry, a drugi od dołu. */
.game-card .hover-meta { transform: translateY(-6px); }
.game-card:hover .row,
.game-card:focus-within .row { opacity: 1; transform: translateY(0); }

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(201,161,90,0.14);
  border: 1px solid var(--panel-border-strong);
  color: var(--brass-bright);
  font-weight: 600;
}

.platform-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.platform-tags span {
  border: 1px solid var(--panel-border);
  padding: 2px 6px;
  border-radius: 4px;
}

.game-card .hint {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brass-bright);
  background: rgba(18,10,30,0.7);
  border: 1px solid var(--panel-border-strong);
  padding: 4px 9px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.game-card:hover .hint, .game-card:focus-visible .hint { opacity: 1; transform: translateY(0); }

/* ---------- 9. ACCORDION (Publicity + Courses) ------------------ */
/* Zwinięty wiersz = max 1 linia (data + tytuł + strzałka).
   Reszta szczegółów chowa się w .acc-panel i rozwija przez
   sztuczkę grid-template-rows 0fr -> 1fr (płynna animacja
   wysokości bez liczenia scrollHeight w JS). */
.accordion {
  --acc-date-w: 186px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--panel-border);
}

.acc-item { border-bottom: 1px solid var(--panel-border); }

.acc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  padding: 15px 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.acc-row:hover { background: rgba(201,161,90,0.05); }

/* Szerokość kolumny z datą trzymana w zmiennej — .acc-panel-content
   wyrównuje do niej swój padding, więc zmieniasz w jednym miejscu.
   Wartość musi mieścić najdłuższy dateLabel (np. "Sep 4, 2020 — Jun 23,
   2021" ~179px), inaczej data zawija się do drugiej linii i psuje
   zasadę "zwinięty wiersz = 1 linia". */
.acc-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  width: var(--acc-date-w);
  flex-shrink: 0;
  white-space: nowrap;
}
.acc-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.acc-format-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brass);
  border: 1px solid var(--panel-border-strong);
  padding: 3px 9px;
  border-radius: 100px;
  flex-shrink: 0;
  white-space: nowrap;
  display: none;
}
@media (min-width: 700px) {
  .acc-format-tag { display: inline-block; }
}
.acc-chevron {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s ease;
}
.acc-item.open .acc-chevron { transform: rotate(180deg); color: var(--brass-bright); }
.acc-item.open .acc-title { color: var(--brass-bright); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel-content {
  padding: 0 6px 20px calc(var(--acc-date-w) + 18px);
}
.acc-topic {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 62ch;
}
.acc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass-bright);
  border-bottom: 1px solid var(--panel-border-strong);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.acc-link:hover { color: var(--ink); border-color: var(--brass-bright); }

@media (max-width: 700px) {
  /* Na wąskim ekranie data nie zmieści się obok tytułu — przenosimy ją
     do własnej linii nad tytułem zamiast ją ściskać albo zawijać w środku. */
  .acc-row { flex-wrap: wrap; gap: 3px 12px; }
  .acc-date { flex: 1 0 100%; width: auto; order: -1; font-size: 10.5px; }
  /* .acc-title zostawiamy z bazowym flex:1 + min-width:0 — inaczej nie
     kurczy się do wielokropka i wypycha strzałkę do osobnej linii. */
  .acc-panel-content { padding-left: 6px; }
}

/* ---------- 10. (removed: Companies section retired — see .exp-logo
   in section 5/Experience, and .modal-partner-* below, for the popup
   that replaced it) ---------- */

/* ---------- 11. SKILLS ------------------------------------------ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.skill-block .block-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.tag-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-pill {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 13.5px;
}

.lang-row { display: flex; flex-direction: column; gap: 14px; }
.lang-item { }
.lang-item .top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.lang-item .top > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.flag-icon { width: 20px; height: auto; border-radius: 2px; display: inline-block; box-shadow: 0 0 0 1px var(--panel-border-strong); }
.lang-item .top .level { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass-bright); }
.lang-bar { height: 5px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.lang-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass-dim), var(--brass-bright)); border-radius: 4px; }

.tool-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.tool-cat .tc-title { font-size: 13px; color: var(--brass-bright); font-family: var(--font-mono); margin-bottom: 8px; }
.tool-cat ul li {
  font-size: 14px;
  color: var(--ink-muted);
  padding: 4px 0;
  border-bottom: 1px dashed var(--panel-border);
}
.tool-cat ul li:last-child { border-bottom: none; }

.hobby-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.hobby-cloud span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  padding: 6px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 100px;
}

/* ---------- 12. LINKS -------------------------------------------- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--panel-border-strong); background: var(--panel-2); }
.link-card img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.link-card .lc-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.link-card .lc-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- 13. REFERENCES ---------------------------------------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.ref-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ref-card .quote-mark { font-family: var(--font-display); font-size: 40px; color: var(--brass); line-height: 0.4; opacity: 0.7; }
.ref-card .quote { font-size: 14.5px; color: var(--ink-muted); line-height: 1.65; flex-grow: 1; }
.ref-card .who { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--panel-border); padding-top: 14px; }
.ref-photo-frame {
  width: 46px; height: 46px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 140deg, var(--brass-bright), var(--brass-dim), var(--brass-bright));
  flex-shrink: 0;
}
.ref-photo-frame img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  display: block;
}
.who .name { font-size: 14px; font-weight: 600; }
.who .role { font-size: 12px; color: var(--ink-faint); }

/* ---------- 14. EXTRAS — QUOTES ---------------------------------- */
/* Ksywki (NICKNAMES) renderują się jako <li> w kafelku "Extras — Quotes"
   w sekcji Skills, więc korzystają ze stylów .tool-cat ul li.
   Osobna siatka .nick-grid nie jest już potrzebna. */
.tool-cat ul li q, .tool-cat ul li { quotes: none; }

/* ---------- 15. CONTACT + FOOTER ---------------------------------- */
.contact-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--panel-border-strong);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  content: "";
  position: absolute;
  top: -60%; right: -10%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(201,161,90,0.18), transparent 70%);
  /* czysto dekoracyjne — bez tego przycisk pod spodem "gubił" hover
     zależnie od kierunku najazdu kursora, bo pozycjonowany pseudo-element
     renderuje się NAD nie-pozycjonowanymi dziećmi w tym samym kontekście */
  pointer-events: none;
  z-index: 0;
}
.contact-band h2,
.contact-actions { position: relative; z-index: 1; }
.contact-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  max-width: 16ch;
}
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.site-footer {
  padding: 34px var(--gutter) 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-footer a { color: var(--ink-faint); border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--brass-bright); border-color: var(--brass-bright); }

/* ---------- 16. REVEAL / MISC --------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 16b. GAME DETAILS MODAL ----------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(8, 4, 14, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.show { opacity: 1; }

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.show .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(18,10,30,0.7);
  border: 1px solid var(--panel-border-strong);
  color: var(--ink);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.modal-close:hover { background: var(--brass); border-color: var(--brass); color: #1a1006; }

.modal-hero {
  position: relative;
  height: 240px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,10,30,0.1) 0%, var(--panel) 100%);
}
.modal-hero .modal-title-block {
  position: absolute;
  left: 28px; bottom: 18px;
  right: 28px;
}
.modal-hero .modal-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}
.modal-hero .modal-dev {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brass-bright);
  margin-top: 4px;
}

.modal-body { padding: 24px 28px 30px; }

/* Trailer — jednolity format 16:9 niezależnie od proporcji okładki gry
   (kafelki są 4:5), więc trailer zawsze ma tę samą wysokość względem
   szerokości modala. Klik zamienia miniaturę na osadzony odtwarzacz. */
.modal-trailer {
  position: relative;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  border: 1px solid var(--panel-border-strong);
}
.modal-trailer .yt-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 0.2s ease; }
.modal-trailer:hover .yt-thumb { opacity: 0.9; }
.modal-trailer .yt-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(201,161,90,0.92);
  color: #1a1006;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  padding-left: 3px; /* optyczne wyśrodkowanie trójkąta */
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.modal-trailer:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.modal-trailer.is-playing { cursor: default; }
.modal-trailer.is-playing iframe { width: 100%; height: 100%; display: block; }

/* Companies popup — reuses .modal-card / .modal-body, but gets its own
   light theme via the .partner-modal modifier class (added/removed in
   main.js). Partner logos + copy read better on a light plate than
   against the app's dark purple panel used for game modals. */
.modal-partner-hero {
  background: #f7f4ec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-partner-hero img { max-height: 84px; max-width: 70%; object-fit: contain; }

/* Header row — company name + website chip share one line (wraps below
   the name only if the viewport is too narrow), instead of the website
   taking up its own full-width bar underneath. */
.modal-partner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
}
.modal-partner-header .modal-name { flex: 1 1 auto; min-width: 0; }

/* Compact pill: brass "live" dot + mono URL + arrow. Reads like a small
   status badge sitting next to the title rather than a separate block. */
.modal-partner-website-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px 8px 12px;
  border-radius: 100px;
  border: 1px solid rgba(36, 26, 58, 0.16);
  background: rgba(36, 26, 58, 0.04);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #241a3a;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.modal-partner-website-chip:hover {
  border-color: var(--brass);
  background: rgba(201, 161, 90, 0.12);
  transform: translateY(-1px);
}
.mpwc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.18);
  flex-shrink: 0;
}
.mpwc-arrow {
  font-size: 12px;
  color: #8a8496;
  transition: transform 0.18s ease, color 0.18s ease;
}
.modal-partner-website-chip:hover .mpwc-arrow { color: var(--brass-bright); transform: translate(2px, -2px); }

/* About — separated from the header with a hairline + small-caps
   label, echoing the ticket/sprint-board motif used elsewhere on the
   site (SEC.xx / STATUS:) instead of just being a plain paragraph. */
.modal-partner-about {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 26, 58, 0.12);
}
.mpa-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6d2f;
  margin-bottom: 10px;
}
.modal-partner-desc {
  margin-top: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.modal-partner-desc + .modal-partner-desc { margin-top: 12px; }
.modal-partner-desc.muted { color: var(--ink-faint); font-style: italic; margin-top: 14px; }

.modal-card.partner-modal { background: #f7f4ec; }
.modal-card.partner-modal .modal-name { color: #241a3a; }
.modal-card.partner-modal .modal-dev { color: #8a6d2f; }
.modal-card.partner-modal .modal-partner-desc { color: #4a4458; }
.modal-card.partner-modal .modal-partner-desc.muted { color: #938c9e; }
.modal-card.partner-modal .modal-close {
  background: rgba(36, 26, 58, 0.08);
  border-color: rgba(36, 26, 58, 0.16);
  color: #241a3a;
}
.modal-card.partner-modal .modal-close:hover { background: var(--brass); border-color: var(--brass); color: #1a1006; }

.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
/* Druga linia chipów (OpenCritic / Steam) — mniejszy odstęp od pierwszej
   linii (data + platformy), większy od tego co jest pod spodem. */
.modal-meta-row.modal-score-row { margin-top: -12px; }
.modal-meta-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--panel-border-strong);
  color: var(--ink-muted);
}
.modal-meta-pill.brass { color: var(--brass-bright); background: rgba(201,161,90,0.1); }

.modal-trailer-fallback {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-trailer-fallback:hover { color: var(--brass-bright); }

.modal-role-block {
  border-top: 1px solid var(--panel-border);
  padding-top: 18px;
}
.modal-role-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.modal-role-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--brass-bright);
}
.modal-role-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-left: 8px;
  font-weight: 400;
}

.modal-resp-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-resp-list li {
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.modal-resp-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* ---------- 17. RESPONSIVE ------------------------------------------- */
@media (max-width: 1300px) {
  .brand small { display: none; }
}

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; margin-top: 12px; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-side { border-left: none; border-top: 2px solid var(--panel-border-strong); padding-left: 0; padding-top: 20px; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--panel-border-strong);
    border-radius: 8px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 16px; height: 1.5px; background: var(--ink);
    position: relative; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle span::before { position: absolute; top: -5px; }
  .nav-toggle span::after { position: absolute; top: 5px; }

  .site-nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--panel-border);
    padding: 10px var(--gutter) 18px;
  }
  .site-nav.open .nav-links a { padding: 12px 10px; }

  .exp-item { grid-template-columns: 1fr; }
  .exp-logo-col { flex-direction: row; justify-content: flex-start; }

  .tool-cats { grid-template-columns: 1fr; }
  .contact-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .hero-stats { gap: 20px; }
  .modal-hero { height: 170px; }
  .modal-body { padding: 20px 18px 24px; }
  .modal-hero .modal-name { font-size: 21px; }
  .dd-toggle { font-size: 11.5px; padding: 9px 12px; }
  .hero-portrait-cta { font-size: 11.5px; padding: 10px 16px; right: 0; }
}
