/* ============================================================
   Śniadania Robotyczne — Kawa × Krzem
   ============================================================ */

:root {
  color-scheme: dark;
  --ink-0: #131518;
  --ink-1: #1a1d22;
  --ink-2: #22262d;
  --line: #2b3038;
  --crema: #f2e7d8;
  --steel: #9aa3b2;
  --amber: #e8a04c;
  --amber-deep: #b06a24;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --disp: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: 24px;
  --w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink-0);
  color: var(--crema);
  font-family: var(--disp);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: var(--ink-0); }
img { max-width: 100%; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crema); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: var(--w); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 21, 24, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 12px var(--pad);
  display: flex; align-items: center; gap: 26px;
}
.logo {
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  color: var(--crema); text-decoration: none; letter-spacing: .04em;
  white-space: nowrap;
}
.logo b { color: var(--amber); font-weight: 600; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  color: var(--steel); text-decoration: none; text-transform: uppercase;
}
.nav-links a:hover { color: var(--amber); }
.nav .btn { padding: 8px 14px; font-size: 12px; margin-left: 8px; }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- przyciski ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 14px; letter-spacing: .05em;
  background: var(--amber); color: #17130c; border: 0;
  padding: 14px 22px; cursor: pointer; text-decoration: none;
  box-shadow: 4px 4px 0 var(--amber-deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--amber-deep); color: #17130c; }
.btn.ghost {
  background: transparent; color: var(--amber);
  border: 1px solid var(--amber-deep); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--amber); transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--w); margin: 0 auto;
  padding: 110px var(--pad) 84px;
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em;
  color: var(--amber); min-height: 1.5em;
}
.eyebrow .cursor {
  display: inline-block; width: .6em; height: 1.05em; margin-left: 2px;
  background: var(--amber); vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero h1 {
  font-size: clamp(46px, 8.4vw, 104px); line-height: .95;
  font-weight: 900; letter-spacing: -.015em; margin: 20px 0 12px;
  text-transform: uppercase; text-wrap: balance;
}
.hero h1 span { color: var(--amber); }
.hero .sub { max-width: 36ch; font-size: 20px; color: var(--steel); margin: 0 0 38px; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.date-chip { font-family: var(--mono); font-size: 13px; color: var(--steel); }
.date-chip b { color: var(--crema); font-weight: 600; }

.stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.stat .num {
  font-family: var(--mono); font-size: 36px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat .num i { color: var(--amber); font-style: normal; }
.stat .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--steel); text-transform: uppercase;
}

/* ---------- sekcje ---------- */
section.block { padding: 92px 0 20px; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  color: var(--amber); text-transform: uppercase; margin-bottom: 10px;
}
.kicker::before { content: "— "; color: var(--steel); }
h2 {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 800;
  letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance;
}
.lead { color: var(--steel); max-width: 62ch; margin: 0 0 40px; font-size: 17.5px; }
.lead b, .lead strong { color: var(--crema); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- filary ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pillar { border: 1px solid var(--line); background: var(--ink-1); padding: 26px; }
.pillar .ico { font-family: var(--mono); color: var(--amber); font-size: 13px; margin-bottom: 14px; }
.pillar h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.pillar p { margin: 0; font-size: 14.5px; color: var(--steel); }

/* ---------- agenda ---------- */
.agenda { border-left: 1px solid var(--line); margin-left: 8px; }
.agenda-item { position: relative; padding: 0 0 30px 34px; }
.agenda-item::before {
  content: ""; position: absolute; left: -5px; top: 8px;
  width: 9px; height: 9px; background: var(--ink-0);
  border: 2px solid var(--amber); border-radius: 50%;
}
.agenda-item .time { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .08em; }
.agenda-item h3 { margin: 4px 0 4px; font-size: 18px; }
.agenda-item p { margin: 0; color: var(--steel); font-size: 15px; max-width: 58ch; }

.rule-53 {
  margin-top: 36px; border: 1px dashed var(--amber-deep); padding: 22px 26px;
  font-family: var(--mono); font-size: 14px; color: var(--crema); max-width: 640px;
}
.rule-53 b { color: var(--amber); }

/* ---------- dla kogo ---------- */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; max-width: 900px; }
.who-item {
  font-family: var(--mono); font-size: 13.5px; color: var(--steel);
  border: 1px solid var(--line); padding: 14px 16px;
}
.who-item::before { content: "→ "; color: var(--amber); }

/* ---------- kolaż ---------- */
.collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 10px; }
.collage .duo:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.collage .duo:nth-child(4) { grid-row: span 2; }
.collage .duo:nth-child(6) { grid-column: span 2; }
@media (max-width: 860px) { .collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .collage .duo:nth-child(n) { grid-column: span 1; grid-row: span 1; } .collage .duo:nth-child(1) { grid-column: span 2; grid-row: span 2; } }

.duo { position: relative; border: 1px solid var(--line); overflow: hidden; margin: 0; }
.duo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transition: filter .45s ease, transform .6s ease;
}
.duo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(232,160,76,.42), rgba(19,21,24,.6));
  mix-blend-mode: hard-light; transition: opacity .45s ease; pointer-events: none;
}
.duo:hover img, .duo.color img { filter: none; }
.duo:hover::after, .duo.color::after { opacity: 0; }
.duo:hover img { transform: scale(1.03); }

/* ---------- archiwum ---------- */
.editions { display: grid; gap: 14px; }
.edition { border: 1px solid var(--line); background: var(--ink-1); }
.edition summary {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center;
  list-style: none; cursor: pointer; padding: 20px 24px;
}
.edition summary::-webkit-details-marker { display: none; }
.edition .eno { font-family: var(--mono); font-size: 13px; color: var(--amber); letter-spacing: .08em; }
.edition .etitle { font-weight: 700; font-size: 18px; }
.edition .etitle small { display: block; font-weight: 400; font-size: 13.5px; color: var(--steel); margin-top: 2px; }
.edition .emark { font-family: var(--mono); color: var(--steel); transition: transform .25s ease; }
.edition[open] .emark { transform: rotate(45deg); color: var(--amber); }
.edition .ebody { padding: 4px 24px 24px; border-top: 1px solid var(--line); }
.edition.badge-next { border-color: var(--amber-deep); }
.edition .next-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: #17130c; background: var(--amber); padding: 3px 8px; margin-left: 10px;
}
.speakers { width: 100%; border-collapse: collapse; margin-top: 14px; }
.speakers td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.speakers td:first-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--crema); }
.speakers td:last-child { color: var(--steel); }
.speakers tr:last-child td { border-bottom: 0; }
.speakers-wrap { overflow-x: auto; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; margin-top: 72px; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tag { font-family: var(--mono); font-size: 13.5px; color: var(--steel); white-space: nowrap; }
.tag::before { content: "◇ "; color: var(--amber); }

/* ---------- głosy ---------- */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.voice { border: 1px solid var(--line); background: var(--ink-1); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.voice p { margin: 0; font-size: 15px; color: var(--crema); flex: 1; }
.voice .vwho { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.voice .vwho b { color: var(--amber); font-weight: 600; display: block; }
.voice a { font-family: var(--mono); font-size: 11.5px; }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); grid-auto-rows: 170px; gap: 10px; }
.gallery .duo { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(19,21,24,.94);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); }
.lightbox button {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 14px; background: none;
  color: var(--crema); border: 1px solid var(--line); padding: 8px 14px; cursor: pointer;
}
.lightbox button:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- materiały ---------- */
.mats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.mat { border: 1px solid var(--line); padding: 24px; background: var(--ink-1); }
.mat .mkick { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--amber); text-transform: uppercase; }
.mat h3 { margin: 8px 0 12px; font-size: 17px; }
.mat ul { margin: 0; padding: 0; list-style: none; }
.mat li { font-size: 14px; color: var(--steel); padding: 5px 0; }
.mat li a { font-size: 14px; }

/* ---------- organizatorzy ---------- */
.orgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; max-width: 760px; }
.org { border: 1px solid var(--line); background: var(--ink-1); padding: 26px; }
.org h3 { margin: 0 0 4px; font-size: 19px; }
.org .orole { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .08em; }
.org p { color: var(--steel); font-size: 14.5px; margin: 12px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); background: var(--ink-1); }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); }
.faq details[open] summary::after { content: "–"; }
.faq .fa { padding: 0 22px 20px; color: var(--steel); font-size: 15px; max-width: 60ch; }

/* ---------- CTA finał ---------- */
.finale {
  margin-top: 100px; border-block: 1px solid var(--line);
  background: var(--ink-1); text-align: center; padding: 90px var(--pad);
}
.finale .kicker::before { content: ""; }
.finale h2 { font-size: clamp(32px, 5vw, 60px); }
.finale p { color: var(--steel); max-width: 52ch; margin: 0 auto 36px; }
.finale .sub-link { display: block; margin-top: 22px; font-family: var(--mono); font-size: 13px; }

/* ---------- stopka ---------- */
footer {
  padding: 34px var(--pad) 46px;
  font-family: var(--mono); font-size: 12.5px; color: var(--steel);
}
.foot-inner {
  max-width: var(--w); margin: 0 auto;
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between;
}
footer a { color: var(--steel); }
footer a:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .cursor { animation: none; }
  .duo img { transition: none; }
}
