@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2.ttf"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans.ttf"); font-weight: 300 800; font-display: swap; }

:root {
  --yellow: #FFE14D;
  --ink: #111;
  --paper: #fff;
  --bg: #f4f1ea;
  --muted: #555;
  --blue: #2f5fd0;
  --green: #4dff7a;
  --screen: rgb(39, 59, 57);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: 400 18px/1.6 "Open Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

.brand {
  font: 800 clamp(48px, 9vw, 112px)/0.95 "Baloo 2", sans-serif;
  letter-spacing: 2px;
  color: var(--yellow);
  -webkit-text-stroke: clamp(8px, 1.4vw, 16px) var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 rgba(0, 0, 0, .25);
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 0;
  background: url("img/openspace.webp") center / cover;
  border-bottom: 6px solid var(--ink);
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(244, 241, 234, .35); }
.hero .wrap { position: relative; text-align: center; }
.tagline {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 26px;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .25);
  font: 800 clamp(20px, 3vw, 30px)/1.2 "Baloo 2", sans-serif;
  max-width: 760px;
}
.cast {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-top: 36px;
}
.cast figure { position: relative; flex: 0 1 200px; margin: 0 -14px; }
.cast figure.a7 { flex-basis: 220px; }
.cast figure img { width: 100%; height: auto; }
.cast figcaption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px;
  padding: 2px 12px; font: 800 18px/1.4 "Baloo 2", sans-serif;
}
/* AGENT-7 ma pusty ekran — buźka w CSS, jak w serialu */
.a7-face { position: absolute; left: 34.7%; top: 3.85%; width: 36.8%; height: 24.6%; background: var(--screen); border-radius: 12px; }
.a7-face i { position: absolute; top: 30%; width: 13%; height: 22%; background: var(--green); border-radius: 4px; box-shadow: 0 0 10px var(--green); animation: blink 4s infinite; }
.a7-face i:nth-child(1) { left: 27%; } .a7-face i:nth-child(2) { right: 27%; }
.a7-face b { position: absolute; left: 35%; width: 30%; top: 68%; height: 7%; background: var(--green); border-radius: 4px; box-shadow: 0 0 10px var(--green); }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.1); } }

/* Sekcje */
section { padding: 72px 0; }
h2 { font: 800 clamp(32px, 5vw, 48px)/1.1 "Baloo 2", sans-serif; margin-bottom: 20px; }
.lead { font-size: 20px; color: var(--muted); max-width: 720px; }

.platforms { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border: 4px solid var(--ink); border-radius: 16px;
  background: var(--paper); text-decoration: none;
  font: 800 22px/1 "Baloo 2", sans-serif;
  box-shadow: 0 5px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn.primary { background: var(--yellow); }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.person { background: var(--paper); border: 4px solid var(--ink); border-radius: 20px; padding: 20px; }
.person h3 { font: 800 26px/1.1 "Baloo 2", sans-serif; }
.person .role { color: var(--blue); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.person .ph { position: relative; height: 220px; margin: -20px -20px 14px; background: #f6efd9; border-bottom: 4px solid var(--ink); border-radius: 16px 16px 0 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; }
.person .ph img { height: 100%; width: auto; object-fit: contain; object-position: bottom; }
.formats .person h3 { font-size: 24px; margin-bottom: 6px; }
.person q { display: block; margin-top: 10px; font-style: italic; color: var(--muted); }

.dark { background: var(--ink); color: var(--paper); }
.dark .lead { color: #ccc; }
.dark .btn { color: var(--ink); }

footer { padding: 32px 0; font-size: 15px; color: var(--muted); border-top: 2px solid #ddd; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Podstrony prawne */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font: 800 clamp(34px, 6vw, 52px)/1.1 "Baloo 2", sans-serif; margin: 16px 0 8px; }
.doc h2 { font-size: 28px; margin: 36px 0 10px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc ul { padding-left: 24px; }
.back { font: 800 20px "Baloo 2", sans-serif; text-decoration: none; }

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .cast figure { margin: 0 -9px; }
  .cast { flex-wrap: nowrap; }
  .cast figcaption { display: none; }
  section { padding: 52px 0; }
}
