/* =========================================================
   Charity MeetUp 2026 by Partners International
   ========================================================= */

/* ---------- Fonty (pliki w assets/fonts) ---------- */
@font-face { font-family: "Mulish"; src: url("../assets/fonts/Mulish-ExtraLight.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../assets/fonts/Mulish-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../assets/fonts/Mulish-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../assets/fonts/Mulish-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../assets/fonts/Mulish-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Noto Serif Display"; src: url("../assets/fonts/NotoSerifDisplay_Condensed-ExtraLightItalic.ttf") format("truetype"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif Display"; src: url("../assets/fonts/NotoSerifDisplay_Condensed-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif Display"; src: url("../assets/fonts/NotoSerifDisplay_Condensed-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }

/* ---------- Tokeny ---------- */
:root {
  --anthracite: #272525;
  --stone: #D0CECA;
  --sand: #E0DFDC;
  --white: #FFFFFF;
  --paper: #F7F6F4;          /* jasny odcień piaskowego kamienia */
  --ink-soft: #5b5857;
  --red: #B3121C;            /* świąteczna czerwień – tylko akcenty */
  --green: #1E5A3E;          /* tylko w treści o dress codzie */
  --gold: #E9D8B4;           /* ciepłe światło w efektach */

  --sans: "Mulish", system-ui, sans-serif;
  --serif: "Noto Serif Display", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  color: var(--anthracite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
strong, b { font-weight: 700; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--white); padding: 10px 16px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(88px, 12vw, 180px) 0; }

/* ---------- Typografia ---------- */
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 28px; display: flex; align-items: center; gap: 14px;
}
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.kicker--light { color: rgba(255,255,255,.7); }

.h-display {
  font-family: var(--sans); font-weight: 200; text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 84px); line-height: 1.04; letter-spacing: .02em;
  color: var(--anthracite);
}
.h-display em {
  font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: 0; font-size: 1.12em; line-height: .9;
}
.h-display--light { color: var(--white); }

.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.55; font-weight: 300; }
.lead + p { margin-top: 20px; }

/* ---------- Przyciski / pigułki ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid currentColor; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; flex: none; }
.pill__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--red); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.pill--light { color: var(--white); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.4); }
.pill--dark { color: var(--white); background: var(--anthracite); border-color: var(--anthracite); }
.pill--xl { padding: 20px 36px; font-size: 14px; }
.pill--nav { padding: 10px 18px; font-size: 11px; color: var(--white); border-color: rgba(255,255,255,.4); }
a.pill:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
.link-arrow--light { color: var(--white); }

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background .5s var(--ease), box-shadow .5s, transform .5s var(--ease);
}
.nav__inner { height: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 32px; }
.nav__brand { position: relative; display: block; width: 118px; height: 53px; flex: none; }
.nav__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s; }
.nav__logo--dark { opacity: 0; }
.nav__menu { display: flex; gap: clamp(18px, 2.4vw, 40px); margin-left: auto; }
.nav__menu a {
  position: relative; text-decoration: none; color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0;
}
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__menu a:hover::after, .nav__menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__menu-cta { display: none; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white); transition: transform .4s var(--ease), top .4s, background .3s; }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 26px; }

.nav.is-solid { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(39,37,37,.08); }
.nav.is-solid .nav__logo--light { opacity: 0; }
.nav.is-solid .nav__logo--dark { opacity: 1; }
.nav.is-solid .nav__menu a { color: var(--anthracite); }
.nav.is-solid .pill--nav { color: var(--anthracite); border-color: rgba(39,37,37,.3); }
.nav.is-solid .nav__burger span { background: var(--anthracite); }
.nav.is-hidden { transform: translateY(-100%); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: var(--white);
  display: flex; align-items: center; overflow: hidden; background: var(--anthracite);
  padding: calc(var(--nav-h) + 32px) 0 96px;
}
.hero__bg { position: absolute; inset: -4%; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,20,20,.92) 0%, rgba(22,20,20,.74) 38%, rgba(22,20,20,.35) 70%, rgba(22,20,20,.55) 100%),
    linear-gradient(0deg, rgba(22,20,20,.85) 0%, rgba(22,20,20,0) 35%),
    linear-gradient(180deg, rgba(22,20,20,.6) 0%, rgba(22,20,20,0) 22%);
}
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 96px); align-items: center; }

.hero__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-bottom: clamp(24px, 3vw, 40px); }
.badge {
  display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid rgba(255,255,255,.55);
  font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
}
.hero__eyebrow-text { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.7vw, 24px); color: rgba(255,255,255,.9); }

.hero__title { margin: 0; }
.hero__logo { width: min(640px, 100%); height: auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,.45)); }
.hero__by { margin-top: 10px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__by strong { color: var(--white); }

.hero__claim {
  margin-top: clamp(24px, 3vw, 40px); max-width: 620px;
  font-weight: 200; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.35; text-transform: uppercase; letter-spacing: .04em;
}
.hero__claim em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.15em; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(28px, 3.5vw, 48px); border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); max-width: 640px; }
.fact { flex: 1 1 240px; padding: 22px 28px 22px 0; display: flex; flex-direction: column; gap: 4px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.25); }
.fact__label { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.fact__value { font-weight: 200; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.05; letter-spacing: .02em; white-space: nowrap; }
.fact__meta { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(28px, 3vw, 44px); }

/* Wejście elementów hero */
.hero-in { opacity: 0; transform: translateY(28px); animation: heroIn 1.3s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero__scroll i { width: 1px; height: 44px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--white); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Pionowe filmy (reels) ---------- */
.reels { width: clamp(240px, 22vw, 320px); }
.reels__label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.reels__live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(179,18,28,.7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(179,18,28,0); } 100% { box-shadow: 0 0 0 0 rgba(179,18,28,0); } }
.reels__stage { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #111; box-shadow: 0 30px 80px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); touch-action: pan-y; }
.reel { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.reel.is-active { opacity: 1; transform: none; z-index: 1; }
.reel__thumb, .reel__frame { position: absolute; inset: 0; }
.reel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel__frame { overflow: hidden; pointer-events: none; }
.reel__frame iframe { position: absolute; top: 50%; left: 50%; border: 0; height: 100%; width: calc(100% * 16 / 9 * 16 / 9); transform: translate(-50%, -50%); }
.reel--vertical .reel__frame iframe { width: 100%; }
.reel__overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0) 50%); }
.reel__title { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.1; }
.reel__play {
  margin-top: 12px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--anthracite);
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: transform .3s var(--ease);
}
.reel__play:hover { transform: scale(1.05); }
.reel__play svg { width: 12px; height: 12px; fill: currentColor; }
.reels__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.reels__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.reels__btn:hover { background: var(--white); }
.reels__btn:hover svg { stroke: var(--anthracite); }
.reels__btn svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 1.5; }
.reels__dots { display: flex; gap: 8px; }
.reels__dots button { width: 26px; height: 3px; padding: 0; background: rgba(255,255,255,.3); border-radius: 2px; position: relative; overflow: hidden; }
.reels__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--white); transform-origin: left; animation: dotFill var(--reel-time, 9s) linear forwards; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--anthracite); color: var(--white); overflow: hidden; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); }
.ticker__track { display: flex; width: max-content; gap: 36px; align-items: center; animation: ticker 40s linear infinite; }
.ticker span { font-size: clamp(16px, 1.6vw, 22px); font-weight: 200; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.ticker em { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.2em; }
.ticker b { color: var(--red); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sekcja 2: Idea ---------- */
.idea { background: var(--white); overflow: hidden; }
.idea__intro { display: grid; grid-template-columns: 1fr; gap: 0; }
.idea__intro .h-display { max-width: 14ch; }
.idea__lead { margin-top: clamp(32px, 4vw, 56px); margin-left: auto; max-width: 600px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--stone); }
.pillar { padding: 32px 28px 8px 0; position: relative; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--stone); }
.pillar__num { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--red); line-height: 1; }
.pillar h3 { margin-top: 18px; font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.pillar p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

.charity { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 110px); align-items: center; margin-top: clamp(88px, 11vw, 170px); }
.charity__photo { aspect-ratio: 4 / 5; }
.charity__photo img { object-position: 62% center; }
.charity__statement { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.5; font-weight: 300; }
.highlight { font-weight: 800; background: linear-gradient(transparent 62%, var(--sand) 62%) no-repeat; background-size: 0% 100%; transition: background-size 1.4s var(--ease) .4s; }
.is-in .highlight { background-size: 100% 100%; }
.highlight--strong { background-image: linear-gradient(transparent 62%, rgba(179,18,28,.18) 62%); }
.charity__beneficiary { display: flex; align-items: center; gap: 20px; margin-top: 36px; padding: 20px 24px; background: var(--paper); border-left: 2px solid var(--red); }
.charity__beneficiary img { height: 54px; width: auto; }
.charity__beneficiary span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.6; }
.charity__beneficiary strong { color: var(--anthracite); letter-spacing: .08em; font-size: 15px; }
.charity__result { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--stone); }
.charity__number { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.charity__prefix { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 38px); color: var(--ink-soft); }
.charity__number strong { font-weight: 200; font-size: clamp(56px, 7vw, 108px); line-height: 1; letter-spacing: .01em; }
.charity__result p { margin-top: 18px; max-width: 560px; color: var(--ink-soft); }
.charity__result p strong { color: var(--anthracite); }

/* Miejsce */
.venue { background: var(--paper); margin-top: clamp(88px, 11vw, 170px); padding: clamp(88px, 11vw, 160px) 0; }
.venue__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.venue__media { position: relative; }
.venue__photo { aspect-ratio: 2 / 3; max-height: 760px; }
.venue__photo img { height: 112%; }
.venue__stamp { position: absolute; right: -54px; bottom: 60px; width: 150px; height: 150px; display: grid; place-items: center; background: var(--white); border-radius: 50%; box-shadow: 0 20px 60px rgba(39,37,37,.12); }
.venue__stamp svg { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.venue__stamp text { font-size: 15.5px; font-weight: 700; letter-spacing: .2em; fill: var(--anthracite); }
.venue__stamp span { font-family: var(--serif); font-style: italic; font-size: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }
.venue__address { margin: 18px 0 32px; font-size: 14px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.venue__body p:not(.kicker):not(.venue__address):not(.lead):not(.dresscode__title) { color: var(--ink-soft); }

.dresscode { display: flex; gap: 24px; align-items: center; margin-top: 44px; padding: 28px; background: var(--white); border: 1px solid var(--sand); }
.dresscode__swatches { display: flex; flex: none; }
.sw { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--white); }
.sw + .sw { margin-left: -12px; }
.sw--red { background: var(--red); }
.sw--green { background: var(--green); }
.sw--glitter { background: radial-gradient(circle at 30% 30%, #fff 0 8%, transparent 9%), radial-gradient(circle at 70% 60%, #fff 0 6%, transparent 7%), conic-gradient(from 30deg, #b9b3a6, #f3ecdc, #9c968a, #efe6d0, #b9b3a6); animation: glitter 3s linear infinite; }
@keyframes glitter { 50% { filter: brightness(1.25) saturate(1.2); } }
.dresscode__title { font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 6px; }
.dresscode p:last-child { font-size: 16px; color: var(--ink-soft); }
.tx-red { color: var(--red); font-weight: 700; }
.tx-green { color: var(--green); font-weight: 700; }
.tx-glitter { font-weight: 700; background: linear-gradient(90deg, #8d8679, #d9cfb6, #8d8679); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Sekcja 3: Program ---------- */
.program { background: var(--white); }
.program__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.program__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.program__date { margin-top: 24px; font-size: 14px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.program__photo { margin-top: 40px; aspect-ratio: 4 / 3; }
.program__photo img { height: 115%; }

.timeline { position: relative; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--sand); }
.timeline::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--progress, 0) * 100%); background: var(--anthracite); transition: height .2s linear; }
.timeline__item { position: relative; display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 24px; padding: 36px 0 36px 40px; border-bottom: 1px solid var(--sand); }
.timeline__item::before { content: ""; position: absolute; left: -5px; top: 50px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 1px solid var(--anthracite); transition: background .5s, transform .5s var(--ease); }
.timeline__item.is-in::before { background: var(--anthracite); }
.timeline__item time { font-weight: 200; font-size: clamp(36px, 3.4vw, 50px); line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.timeline__item time span { font-size: .5em; color: var(--ink-soft); margin-left: 4px; }
.timeline__item h3 { font-size: clamp(17px, 1.4vw, 20px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }
.timeline__item p { margin-top: 6px; color: var(--ink-soft); }
.timeline__item--feature { background: var(--anthracite); color: var(--white); padding-right: 32px; margin-left: 0; border-bottom: 0; }
.timeline__item--feature::before { background: var(--red) !important; border-color: var(--red); transform: scale(1.4); }
.timeline__item--feature time span { color: rgba(255,255,255,.6); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.timeline__note { padding: 28px 0 0 40px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); }

/* ---------- Sekcja 4: Poprzednie edycje ---------- */
.editions { background: var(--anthracite); color: var(--white); padding-bottom: 0; }
.editions__head { display: grid; gap: 0; }
.editions__lead { margin-top: 28px; max-width: 520px; color: rgba(255,255,255,.72); font-size: 18px; }

.videos { display: grid; grid-template-columns: 1fr .56fr; gap: 20px; max-width: 1040px; margin: clamp(48px, 6vw, 80px) auto 0; }
.videos .video-card--landscape { aspect-ratio: 16 / 9; }
.videos .video-card--vertical { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: auto; }
.video-card { position: relative; overflow: hidden; border-radius: 4px; background: #111; cursor: pointer; text-align: left; width: 100%; padding: 0; }
.video-card--landscape { aspect-ratio: 16 / 10; }
.video-card--vertical { aspect-ratio: 9 / 16; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.75) saturate(.9); }
.video-card:hover img { transform: scale(1.06); filter: brightness(.9) saturate(1); }
.video-card__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.5); transition: transform .5s var(--ease), background .4s; }
.video-card__play svg { width: 22px; height: 22px; fill: var(--white); margin-left: 4px; }
.video-card:hover .video-card__play { transform: scale(1.12); background: var(--red); border-color: var(--red); }
.video-card__meta { position: absolute; left: 20px; bottom: 16px; right: 20px; display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.video-card__meta em { font-family: var(--serif); font-size: 24px; letter-spacing: 0; text-transform: none; }

/* Galeria pozioma */
.hgallery { position: relative; margin-top: clamp(80px, 10vw, 140px); }
.hgallery__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hgallery__track { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--gutter); will-change: transform; }
.hgallery__intro { flex: none; width: clamp(280px, 34vw, 520px); padding-right: 24px; }
.hgallery__title { font-weight: 200; font-size: clamp(32px, 4.2vw, 64px); line-height: 1.08; text-transform: uppercase; letter-spacing: .02em; }
.hgallery__title em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.hgallery__hint { margin-top: 32px; display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hgallery__hint i { width: 64px; height: 1px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hgallery__hint i::after { content: ""; position: absolute; inset: 0; background: var(--white); animation: hint 2s var(--ease) infinite; }
@keyframes hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hgallery__item { flex: none; position: relative; overflow: hidden; margin: 0; }
.hgallery__item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: filter .6s; filter: grayscale(.25) brightness(.92); }
.hgallery__item:hover img { filter: none; }
.hgallery__item--a { width: clamp(260px, 34vw, 560px); aspect-ratio: 3 / 2; }
.hgallery__item--b { width: clamp(200px, 22vw, 360px); aspect-ratio: 4 / 5; align-self: flex-start; margin-top: 8vh; }
.hgallery__item--c { width: clamp(220px, 26vw, 420px); aspect-ratio: 1 / 1; align-self: flex-end; margin-bottom: 8vh; }
.hgallery__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; height: 1px; background: rgba(255,255,255,.15); }
.hgallery__progress i { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }

/* ---------- Bilety (przygotowane, ukryte) ---------- */
.tickets { background: var(--paper); text-align: center; }
.tickets__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tickets .kicker::before { display: none; }

/* ---------- Sekcja 5: Finał ---------- */
.finale { background: var(--white); text-align: center; overflow: hidden; }
.finale__glow { position: absolute; left: 50%; top: 30%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(224,223,220,.9) 0%, rgba(255,255,255,0) 60%); pointer-events: none; }
.finale__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.finale__logo { width: min(720px, 100%); height: auto; }
.finale__invite { margin-top: clamp(28px, 4vw, 48px); font-weight: 200; font-size: clamp(22px, 2.6vw, 38px); text-transform: uppercase; letter-spacing: .06em; }
.finale__invite em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.2em; }
.finale__facts { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 980px; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.finale__fact { padding: 32px 16px; display: flex; flex-direction: column; gap: 6px; }
.finale__fact + .finale__fact { border-left: 1px solid var(--stone); }
.finale__fact span { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.finale__fact strong { font-weight: 200; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.finale__fact small { font-size: 14px; font-weight: 700; }

.countdown { display: flex; gap: clamp(16px, 3vw, 48px); margin-top: 48px; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.countdown strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.finale__cta { margin-top: 28px; }

/* Dodaj do kalendarza */
.addcal { position: relative; margin-top: 40px; z-index: 5; }
.addcal__btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px;
  border: 1px solid var(--anthracite); background: var(--white); color: var(--anthracite);
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.addcal__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; flex: none; }
.addcal__btn .addcal__chev { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.addcal__btn:hover { background: var(--anthracite); color: var(--white); }
.addcal__btn[aria-expanded="true"] { background: var(--anthracite); color: var(--white); }
.addcal__btn[aria-expanded="true"] .addcal__chev { transform: rotate(180deg); }
.addcal__menu {
  position: absolute; left: 50%; top: calc(100% + 10px); width: 280px; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--sand); box-shadow: 0 24px 60px rgba(39,37,37,.16);
  padding: 8px; text-align: left; animation: menuIn .35s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translate(-50%, -8px); } }
.addcal__menu a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-decoration: none;
  font-size: 15px; font-weight: 400; transition: background .25s;
}
.addcal__menu a:hover, .addcal__menu a:focus-visible { background: var(--paper); }
.addcal__ico {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--stone); font-size: 13px; font-weight: 800;
}
.organizer { margin-top: clamp(64px, 8vw, 110px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.organizer span { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.organizer img { width: 190px; height: auto; transition: opacity .3s; }
.organizer a:hover img { opacity: .7; }

.footer { background: var(--anthracite); color: rgba(255,255,255,.6); font-size: 13px; padding: 28px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(15,14,14,.92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 64px 16px 24px; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.modal__frame.is-vertical { width: auto; height: min(84vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: var(--white); font-size: 18px; }
.modal__close:hover { background: var(--white); color: var(--anthracite); }

/* ---------- Animacje przewijania ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* Zasłona na <img>, nie na <figure> – IntersectionObserver ignoruje elementy całkowicie przycięte clip-path */
.img-reveal { position: relative; overflow: hidden; margin: 0; }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); clip-path: inset(100% 0 0 0); transition: transform 2s var(--ease), clip-path 1.5s var(--ease); }
.img-reveal.is-in img { transform: scale(1); clip-path: inset(0 0 0 0); }
.img-reveal img[data-parallax] { transition: clip-path 1.5s var(--ease); transform: none; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
[data-split].is-in .w > span { transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--stone); margin-top: 8px; }
  .venue__stamp { right: 16px; bottom: -40px; width: 120px; height: 120px; }
  .venue__stamp text { font-size: 15px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav__brand { width: 96px; height: 43px; }
  .nav__burger { display: block; }
  .pill--nav { display: none; }
  .nav__menu {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: var(--anthracite); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav__menu a { font-size: 22px; font-weight: 200; letter-spacing: .14em; color: var(--white) !important; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .nav__menu-cta { display: block; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav.is-open .nav__menu a { opacity: 1; transform: none; }
  .nav.is-open .nav__menu a:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__menu a:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__menu a:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__menu a:nth-child(5) { transition-delay: .2s; }
  .nav.is-open { background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav.is-open .nav__burger span { background: var(--white); }
  .nav.is-open .nav__logo--light { opacity: 1; }
  .nav.is-open .nav__logo--dark { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

  .hero { align-items: flex-start; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__shade { background: linear-gradient(180deg, rgba(22,20,20,.75) 0%, rgba(22,20,20,.7) 45%, rgba(22,20,20,.92) 100%); }
  .hero__scroll { display: none; }
  .reels { width: 100%; max-width: 420px; }
  .reels__stage { aspect-ratio: 4 / 5; }
  .reel__frame iframe { width: calc(100% * 16 / 9 * 5 / 4); }
  .reel--vertical .reel__frame iframe { width: 100%; height: calc(100% * 16 / 9 * 4 / 5); }

  .charity, .venue__grid, .program__grid { grid-template-columns: 1fr; }
  .charity__photo { aspect-ratio: 3 / 2; }
  .venue__photo { aspect-ratio: 4 / 5; max-height: 640px; }
  .program__head { position: static; }
  .program__photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .fact { flex-basis: 100%; padding-right: 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--stone); }
  .pillar:nth-child(n+3) { margin-top: 0; }
  .videos { grid-template-columns: 1fr; }
  .videos .video-card--vertical { grid-column: auto; grid-row: auto; aspect-ratio: 9 / 14; }
  .dresscode { flex-direction: column; align-items: flex-start; padding: 22px; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; padding: 28px 0 28px 28px; }
  .timeline__item::before { top: 38px; }
  .timeline__item--feature { padding-right: 20px; }
  .timeline__note { padding-left: 28px; }
  .finale__facts { grid-template-columns: 1fr; }
  .finale__fact + .finale__fact { border-left: 0; border-top: 1px solid var(--stone); }
  .countdown div { min-width: 0; }
  .hgallery__intro { width: 78vw; }
  .hgallery__item--a { width: 82vw; }
  .hgallery__item--b { width: 62vw; margin-top: 14vh; }
  .hgallery__item--c { width: 70vw; margin-bottom: 14vh; }
  .pill--xl { padding: 18px 26px; font-size: 13px; }
}

/* Ograniczony ruch: zostają łagodne przejścia (zanikanie), bez przesunięć i zoomu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img { animation: none; }
  .reveal, .hero-in { transform: none; }
  .img-reveal img { transform: none; }
  [data-split] .w > span { transform: none; opacity: 0; transition: opacity 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
  [data-split].is-in .w > span { opacity: 1; }
  .ticker__track { animation-duration: 90s; }
}
