/* Speaking page — a drifting photo collage around a big wordmark (after bybang.co), in the site's tokens. */
.sp-page { overflow-x: clip; }
.sp-page .label { color: var(--mute); margin: 0 0 14px; }

/* ── Stage ── */
.sp-stage { position: relative; height: 165svh; padding-top: 0; }
.sp-ph { position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: calc(var(--w) * 1vw); margin: 0; z-index: 1; will-change: transform; }
.sp-ph img { width: 100%; height: auto; display: block; background: var(--paper-2); }
.sp-ph:not(.sp-ph--cut) img { filter: saturate(.9) contrast(1.02); }
.sp-ph { cursor: default; outline: none; }
.sp-ph img { transition: transform .5s var(--ease-out); }
.sp-cap { position: absolute; left: 0; top: calc(100% + 6px); width: max(100%, 200px); display: grid; gap: 3px; padding: 10px 12px; color: #f2f1ed; background: rgba(10,10,10,.92); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .3s var(--ease-out); pointer-events: none; }
.sp-ph--r .sp-cap { left: auto; right: 0; }
.sp-cap b { font: 500 clamp(12px, 1.05vw, 16px)/1.1 var(--f-display); letter-spacing: -.01em; }
.sp-cap .mono { font-size: 9.5px; color: #b9b7b0; }
.sp-cap em { font: 400 11.5px/1.4 var(--f-body, inherit); font-style: normal; color: #dcdad3; }
.sp-ph:hover { z-index: 5; }
.sp-ph:hover img, .sp-ph:focus-visible img, .sp-ph.on img { transform: scale(1.03); }
.sp-ph:hover .sp-cap, .sp-ph:focus-visible .sp-cap, .sp-ph.on .sp-cap { opacity: 1; transform: none; }
.sp-ph--cut { z-index: 3; pointer-events: none; }
.sp-ph--cut img { background: none; }
.sp-fix { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.sp-word { margin: 0; font: 600 clamp(60px, 13vw, 230px)/.8 var(--f-display); letter-spacing: -.06em; text-align: center; }
.sp-word__a { color: var(--mute-2); }
.sp-word__b { color: var(--ink); }
.sp-tag { position: absolute; left: 50%; bottom: 22svh; transform: translateX(-50%); color: var(--mute); margin: 0; white-space: nowrap; }
.sp-hint { position: absolute; left: var(--gutter); bottom: 22px; color: var(--mute); margin: 0; }
.sp-clocks { position: absolute; right: var(--gutter); bottom: 22px; margin: 0; display: grid; gap: 4px; text-align: right; color: var(--mute); }
.sp-clocks b { color: var(--ink); font-weight: 500; }

/* ── Statement ── */
.sp-statement { padding: clamp(80px, 10vw, 160px) var(--gutter) clamp(40px, 5vw, 80px); max-width: 1500px; }
.sp-statement__text { margin: 0 0 40px; font: 500 clamp(26px, 3.6vw, 62px)/1.12 var(--f-display); letter-spacing: -.03em; max-width: 24em; text-wrap: balance; }
.sp-statement__text em { font: italic 400 1.04em/1 var(--f-serif); color: var(--accent-text); letter-spacing: -.02em; }

/* ── Topics ── */
.sp-topics, .sp-formats { padding: clamp(50px, 6vw, 100px) var(--gutter); }

.sp-topic-list { list-style: none; margin: clamp(28px, 4vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sp-topic { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: clamp(22px, 2.4vw, 36px); min-height: 220px; display: flex; flex-direction: column; gap: 12px; transition: background .3s; }
.sp-topic:hover { background: var(--paper-2); }
.sp-topic .mono { color: var(--mute); }
.sp-topic h3 { margin: auto 0 0; font: 500 clamp(22px, 2vw, 32px)/1.08 var(--f-display); letter-spacing: -.025em; }
.sp-topic p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ── Formats ── */
.sp-format-list { list-style: none; margin: clamp(28px, 4vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.sp-format { border-top: 1px solid var(--ink); padding-top: 18px; }
.sp-format .mono { color: var(--mute); }
.sp-format h3 { margin: 14px 0 10px; font: 500 clamp(24px, 2.4vw, 40px)/1 var(--f-display); letter-spacing: -.03em; }
.sp-format p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ── Book ── */
.sp-book { background: var(--night); color: var(--bone); padding: clamp(80px, 11vw, 190px) var(--gutter); }
.sp-book .label { color: #8d8c86; }
.sp-book__title { margin: 0 0 28px; font: 500 clamp(52px, 10vw, 190px)/.88 var(--f-display); letter-spacing: -.05em; }
.sp-book__text { max-width: 36em; margin: 0 0 36px; color: #bdbbb4; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.5; }

@media (max-width: 900px) {
  .sp-stage { height: 150svh; }
  .sp-ph { width: calc(var(--w) * 1.9vw); }
  .sp-ph--cut { width: calc(var(--w) * 1.7vw); }
  .sp-word { font-size: clamp(54px, 18vw, 140px); }
  .sp-tag { white-space: normal; text-align: center; width: 80%; bottom: 20svh; }
  .sp-st-list { grid-template-columns: 1fr 1fr; }
  .sp-format-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .sp-format-list, .sp-st-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sp-ph { transform: none !important; } }

/* Polish wordmark is longer (“wystąpienia”) */
html[lang="pl"] .sp-word { font-size: clamp(42px, 9.4vw, 170px); }
@media (max-width: 900px) { html[lang="pl"] .sp-word { font-size: clamp(36px, 11vw, 100px); } }
