/* =========================================================
   FMLN Community — Protokół FMLN
   Kierunek: surowy · chromowany · selekcyjny.
   Układ: asymetryczna kolumna treści po lewej, zaćmienie (pierścień
   z logo) jako powracający motyw po prawej i w kluczowych momentach.
   ========================================================= */

@font-face {
  font-family: "Tektur";
  src: url("../fonts/tektur-latin-ext-standard-normal.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Tektur";
  src: url("../fonts/tektur-latin-standard-normal.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: dark;
  /* kolor: neutralne tonowane w stronę chłodnej stali logo */
  --ink-0: oklch(0.115 0.006 265);
  --ink-1: oklch(0.155 0.008 265);
  --ink-2: oklch(0.205 0.01 265);
  --line: oklch(0.34 0.012 265);
  --line-soft: oklch(0.34 0.012 265 / 0.5);
  --mute: oklch(0.71 0.012 265);
  --text: oklch(0.93 0.006 265);
  --flare: oklch(0.985 0.004 265);
  --chrome-hi: oklch(0.97 0.004 265);
  --chrome-mid: oklch(0.72 0.012 265);
  --chrome-lo: oklch(0.86 0.008 265);
  --danger: oklch(0.74 0.13 25);

  /* typografia */
  --display: "Tektur", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 3.8rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.8vw, 6.6rem);

  /* przestrzeń */
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
  --section: clamp(72px, 6vw + 40px, 144px);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --pad-x: max(var(--gutter), calc((100% - var(--max)) / 2));
  --radius: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--flare); color: var(--ink-0); }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--flare); color: var(--ink-0); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.noscript { padding: 16px; text-align: center; color: var(--mute); }

/* ---------- typografia ---------- */
.eyebrow {
  font-family: var(--display); font-stretch: 75%; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: var(--step--1);
  color: var(--mute); margin: 0;
  display: inline-flex; align-items: center; gap: var(--space-sm);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--flare); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.h2 {
  font-family: var(--display); font-weight: 700; font-stretch: 100%;
  font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0; max-width: 18ch; text-wrap: balance; color: var(--flare);
}
.h3 { font-family: var(--display); font-weight: 650; font-size: var(--step-1); line-height: 1.15; margin: 0; color: var(--flare); }
.section-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-3xl); }
.section-lead { margin: 0; color: var(--mute); max-width: 56ch; text-wrap: pretty; }

/* ---------- przyciski ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px;
  font-family: var(--display); font-stretch: 85%; font-weight: 650; font-size: 0.95rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; isolation: isolate; overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--chrome {
  color: var(--ink-0);
  background: linear-gradient(115deg, var(--chrome-hi) 0%, var(--chrome-mid) 42%, var(--chrome-hi) 58%, var(--chrome-lo) 100%);
  background-size: 220% 100%; background-position: 100% 0;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.25) inset, 0 10px 40px -12px oklch(0.95 0.01 265 / 0.45);
  transition: background-position 0.9s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn--chrome:hover { background-position: 0 0; transform: translateY(-2px); box-shadow: 0 0 0 1px oklch(1 0 0 / 0.35) inset, 0 16px 50px -12px oklch(0.95 0.01 265 / 0.6); }
.btn--chrome:active { transform: translateY(0) scale(0.98); }
.btn--ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--chrome-mid); background: var(--ink-1); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 0.8rem; }
.btn--lg { --h: 58px; padding: 0 30px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-soft); background: oklch(0.155 0.008 265 / 0.7); cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.icon-btn:hover { border-color: var(--chrome-mid); background: var(--ink-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--mute); font-size: inherit; }
.linklike:hover { color: var(--text); }
.tag {
  display: inline-block; font-family: var(--display); font-stretch: 75%; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.72rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute);
}

/* ---------- intro ---------- */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: var(--ink-0); pointer-events: auto; cursor: pointer;
}
.intro-on body { overflow: hidden; }
.intro > * { grid-area: 1 / 1; }
.intro__ring { width: min(78vw, 460px); height: auto; transform: rotate(-90deg); overflow: visible; }
.intro__track { fill: none; stroke: oklch(0.34 0.012 265 / 0.35); stroke-width: 1; }
.intro__arc {
  fill: none; stroke: var(--flare); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px oklch(1 0 0 / 0.9)) drop-shadow(0 0 22px oklch(0.9 0.01 265 / 0.6));
  animation: arc 1.5s var(--ease-out) 0.15s forwards;
}
.intro__star {
  width: 34px; height: 34px; background: var(--flare); margin-top: max(-34vw, -190px);
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  filter: drop-shadow(0 0 10px oklch(1 0 0)); opacity: 0; transform: scale(0.2) rotate(-45deg);
  animation: star 0.9s var(--ease-out) 0.9s forwards;
}
.intro__mark {
  width: min(58vw, 340px); opacity: 0; clip-path: inset(0 100% 0 0);
  filter: drop-shadow(0 0 18px oklch(1 0 0 / 0.25));
  animation: wipe 1s var(--ease-out) 1.05s forwards;
}
.intro__tag {
  margin-top: min(26vw, 150px); font-family: var(--display); font-stretch: 75%; letter-spacing: 0.5em;
  text-transform: uppercase; font-size: 0.72rem; color: var(--mute); opacity: 0;
  animation: fade 0.8s var(--ease-out) 1.6s forwards;
}
.intro.is-leaving { animation: introOut 0.9s var(--ease-in) forwards; }
.intro.is-leaving .intro__ring { animation: ringOut 0.9s var(--ease-in) forwards; }
@keyframes arc { to { stroke-dashoffset: 0; } }
@keyframes star { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes wipe { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes introOut { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes ringOut { to { transform: rotate(-90deg) scale(3.2); opacity: 0; } }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--pad-x) 14px;
  transition: background-color 0.4s, border-color 0.4s, padding 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: oklch(0.115 0.006 265 / 0.78); border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  padding-block: calc(env(safe-area-inset-top, 0px) + 10px) 10px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: 92px; }
.nav__brand span { font-family: var(--display); font-stretch: 75%; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.62rem; color: var(--mute); padding-top: 3px; }
.nav__links { display: none; gap: var(--space-xl); }
.nav__links a { text-decoration: none; font-size: 0.92rem; color: var(--mute); position: relative; transition: color 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--flare); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav__links a:hover { color: var(--flare); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 880px) { .nav__links { display: flex; } }
@media (max-width: 420px) { .nav__brand span { display: none; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  background-color: var(--ink-0);
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--pad-x) var(--space-4xl);
  overflow: hidden;
}
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__eclipse {
  position: relative; justify-self: center; width: min(82vw, 440px); aspect-ratio: 1; max-width: 100%;
  display: grid; place-items: center; margin: -24px 0 var(--space-md);
  will-change: transform; mix-blend-mode: screen;
}
.hero__eclipse > * { grid-area: 1 / 1; }
.eclipse__logo { width: 100%; mix-blend-mode: screen; -webkit-mask: radial-gradient(circle, #000 56%, transparent 71%); mask: radial-gradient(circle, #000 56%, transparent 71%); user-select: none; -webkit-user-drag: none; }
.eclipse__glow {
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.9 0.01 265 / 0.16), transparent 68%);
  filter: blur(30px); animation: breathe 6s ease-in-out infinite;
}
.eclipse__corona {
  width: 87.5%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0deg, transparent 220deg, oklch(0.98 0.004 265 / 0.0) 250deg, oklch(0.98 0.004 265 / 0.95) 318deg, oklch(0.98 0.004 265 / 0) 340deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent calc(70.5% - 2px), #000 calc(70.5% - 1px), #000 calc(70.5% + 1px), transparent calc(70.5% + 2px));
  mask: radial-gradient(circle, transparent calc(70.5% - 2px), #000 calc(70.5% - 1px), #000 calc(70.5% + 1px), transparent calc(70.5% + 2px));
  filter: drop-shadow(0 0 6px oklch(1 0 0 / 0.8)) drop-shadow(0 0 18px oklch(0.9 0.01 265 / 0.5));
  animation: spin 9s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.7; } }

.hero__copy { position: relative; display: grid; gap: var(--space-lg); max-width: 720px; }
.hero__title {
  font-family: var(--display); font-weight: 750; font-size: var(--step-4); line-height: 0.95;
  letter-spacing: -0.03em; margin: 0; color: var(--flare);
}
.hero__title .line { display: block; }
.hero__title .num { font-stretch: 85%; white-space: nowrap; position: relative; }
.hero__title .num::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.16em; height: 0.06em;
  background: var(--flare); transform-origin: left; transform: scaleX(var(--u, 1));
  transition: transform 1.2s var(--ease-out) 0.7s; box-shadow: 0 0 18px oklch(1 0 0 / 0.6);
}
.js .hero__title:not(.is-in) .num::after { --u: 0; }
.hero__lead { margin: 0; color: var(--mute); max-width: 58ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__note { margin: 0; font-size: var(--step--1); color: var(--mute); }
@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; min-height: min(100svh, 920px); padding-top: 120px; }
  .hero__copy { grid-column: 1; grid-row: 1; z-index: 2; }
  .hero__eclipse { grid-column: 1 / -1; grid-row: 1; justify-self: end; width: min(50vw, 700px); margin: 0 calc(var(--pad-x) * -0.5) 0 0; opacity: 0.95; }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line-soft); overflow: hidden; background: var(--ink-1); }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; gap: var(--space-3xl); list-style: none; margin: 0; padding: 18px var(--space-3xl) 18px 0; padding-left: var(--space-3xl); }
.ticker__list li { white-space: nowrap; color: var(--mute); font-size: 0.95rem; display: flex; align-items: center; gap: var(--space-sm); }
.ticker__list li::after { content: ""; width: 6px; height: 6px; margin-left: var(--space-3xl); background: var(--line); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ticker__list b { font-family: var(--display); font-weight: 650; color: var(--flare); font-variant-numeric: tabular-nums; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- historia ---------- */
.story { padding: var(--section) var(--pad-x); }
.story__split { display: grid; gap: var(--space-2xl); align-items: center; margin-bottom: var(--section); }
@media (min-width: 860px) { .story__split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4xl); } }
.story__before { margin: 0; position: relative; max-width: 430px; }
.story__before img { width: 100%; border-radius: var(--radius); filter: grayscale(0.85) contrast(1.08) brightness(0.92); transition: filter 1.2s var(--ease-out); }
.story__before:hover img { filter: grayscale(0) contrast(1); }
.story__before figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); color: var(--mute); font-size: var(--step--1); }
.story__meter { display: grid; gap: var(--space-xs); }
.story__label { margin: 0; font-family: var(--display); font-stretch: 75%; letter-spacing: 0.22em; text-transform: uppercase; font-size: var(--step--1); color: var(--mute); }
.story__from { margin: 0; color: var(--mute); }
.story__from span { font-family: var(--display); font-weight: 600; color: var(--text); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--chrome-mid); }
.story__count {
  margin: var(--space-xs) 0 0; font-family: var(--display); font-weight: 800; font-stretch: 85%;
  font-size: clamp(3.2rem, 1.6rem + 7.4vw, 8.4rem); line-height: 0.9; letter-spacing: -0.035em;
  color: var(--flare); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.story__to { margin: 0; color: var(--text); font-weight: 500; }
.story__body { margin: var(--space-lg) 0 0; color: var(--mute); max-width: 54ch; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--space-4xl); }
.timeline__rail { position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.timeline__rail span { position: absolute; inset: 0 0 auto 0; height: 100%; background: var(--flare); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px oklch(1 0 0 / 0.7); }
.step { display: grid; gap: var(--space-xl); padding-left: 44px; position: relative; }
.step::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 13px; height: 13px; background: var(--ink-0);
  border: 1px solid var(--chrome-mid); transform: rotate(45deg); transition: background-color 0.6s, box-shadow 0.6s;
}
.step.is-in::before { background: var(--flare); box-shadow: 0 0 14px oklch(1 0 0 / 0.8); }
.step__n { font-family: var(--display); font-stretch: 75%; font-weight: 600; letter-spacing: 0.2em; color: var(--mute); font-size: var(--step--1); }
.step__text h3 { font-family: var(--display); font-size: var(--step-2); font-weight: 700; line-height: 1.05; margin: var(--space-xs) 0 var(--space-md); color: var(--flare); }
.step__text p { margin: 0; color: var(--mute); max-width: 46ch; }
.step__media { position: relative; display: flex; align-items: flex-start; gap: var(--space-lg); min-width: 0; }
@media (min-width: 860px) {
  .timeline__rail { left: 50%; }
  .step { grid-template-columns: 1fr 1fr; gap: var(--space-4xl); padding-left: 0; align-items: center; }
  .step::before { left: calc(50% - 6px); top: 50%; }
  .step:nth-child(odd) .step__text { order: 2; }
  .step:nth-child(odd) .step__media { justify-content: flex-end; }
}
.phone {
  width: min(250px, 62vw); flex: none; border-radius: 30px; padding: 8px; background: linear-gradient(150deg, var(--chrome-lo), oklch(0.3 0.01 265) 40%, var(--chrome-mid));
  box-shadow: 0 30px 80px -30px oklch(0 0 0 / 0.9);
}
.phone { position: relative; }
.phone__live { position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: oklch(0.115 0.006 265 / 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--display); font-stretch: 75%; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.66rem; color: var(--flare); }
.phone__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: oklch(0.7 0.19 25); box-shadow: 0 0 8px oklch(0.7 0.19 25); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.phone video { width: 100%; border-radius: 23px; background: var(--ink-1); aspect-ratio: 9 / 16; object-fit: cover; }
.step__badge--tall { width: min(170px, 34vw) !important; }
.step__badge { width: min(150px, 30vw); border-radius: 12px; border: 1px solid var(--line); align-self: flex-end; transform: rotate(4deg); box-shadow: 0 20px 50px -20px oklch(0 0 0 / 0.9); }
.shot { border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--ink-1); box-shadow: 0 30px 80px -40px oklch(0 0 0 / 0.95); }
.shot--wide { width: min(100%, 520px); }
.shot--tall { width: min(100%, 380px); }

/* ---------- versus ---------- */
.versus { padding: var(--section) var(--pad-x); background: linear-gradient(var(--ink-0), var(--ink-1) 30%, var(--ink-1) 70%, var(--ink-0)); }
.versus__switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: var(--space-xl); background: var(--ink-0); }
.seg { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-family: var(--display); font-stretch: 85%; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; color: var(--mute); transition: background-color 0.4s, color 0.4s; }
.seg.is-on { background: var(--flare); color: var(--ink-0); }
.versus__table { display: grid; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; perspective: 1400px; }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); padding: 18px 20px; border-top: 1px solid var(--line-soft); position: relative; }
.vrow:first-child { border-top: 0; }
.vrow--head { display: none; }
.vrow [role="rowheader"] { font-family: var(--display); font-stretch: 85%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--mute); }
.vrow .old, .vrow .ai { grid-area: 2 / 1; backface-visibility: hidden; transition: transform 0.7s var(--ease-out), opacity 0.5s; transition-delay: var(--fd, 0ms); }
.vrow .ai { color: var(--flare); font-weight: 500; }
.vrow .old { color: var(--mute); }
.versus__table[data-side="ai"] .vrow .old { transform: rotateX(90deg); opacity: 0; }
.versus__table[data-side="old"] .vrow .ai { transform: rotateX(-90deg); opacity: 0; }
@media (min-width: 760px) {
  .versus__switch { display: none; }
  .vrow { grid-template-columns: 1.1fr 1.5fr 1.7fr; gap: var(--space-xl); padding: 22px 28px; align-items: center; }
  .vrow--head { display: grid; background: var(--ink-0); }
  .vrow--head span { font-family: var(--display); font-weight: 650; font-size: var(--step-0); color: var(--mute); }
  .vrow--head span:last-child { color: var(--flare); }
  .vrow .old, .vrow .ai { grid-area: auto; transform: none !important; opacity: 1 !important; }
  .vrow .ai { background: oklch(0.21 0.01 265 / 0.6); margin: -22px -28px -22px 0; padding: 22px 28px; align-self: stretch; display: flex; align-items: center; }
  .vrow--head span:last-child { background: oklch(0.21 0.01 265 / 0.6); margin: -22px -28px -22px 0; padding: 22px 28px; }
}

/* ---------- mindset ---------- */
.mind { padding: var(--section) var(--pad-x); }
.mind__statement {
  font-family: var(--display); font-weight: 650; font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.02em;
  margin: 0 0 var(--section); max-width: 22ch; color: var(--flare); text-wrap: balance;
}
@media (min-width: 960px) { .mind__statement { max-width: 24ch; } }
.mind__statement .w { opacity: var(--o, 1); transition: opacity 0.25s linear; }
.js .mind__statement .w { --o: 0.16; }
.mind__statement .w.on { --o: 1; }
.excuses { display: grid; gap: var(--space-xl); }
@media (min-width: 960px) { .excuses { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } }
.excuses__list { list-style: none; margin: 0; padding: 0; display: grid; }
.excuses__list li { display: grid; gap: var(--space-xs); padding: var(--space-xl) 0; border-top: 1px solid var(--line-soft); }
.excuses__list li:last-child { border-bottom: 1px solid var(--line-soft); }
@media (min-width: 720px) { .excuses__list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: baseline; } }
.excuse { margin: 0; font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--text); }
.excuse s { text-decoration: none; background: linear-gradient(var(--flare), var(--flare)) no-repeat 0 55% / 0% 2px; transition: background-size 0.9s var(--ease-out) 0.35s, color 0.9s 0.35s; }
.excuses__list li.is-in .excuse s, .no-js-strike .excuse s { background-size: 100% 2px; color: var(--mute); }
.answer { margin: 0; color: var(--text); }

/* ---------- system / moduły ---------- */
.system { padding: var(--section) var(--pad-x); }
.modules { list-style: none; margin: 0 0 var(--section); padding: 0; border-top: 1px solid var(--line-soft); }
.module { border-bottom: 1px solid var(--line-soft); }
.module__head {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-lg);
  padding: var(--space-xl) 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.module__n { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: var(--step-2); color: var(--line); transition: color 0.5s; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.module__title { font-family: var(--display); font-weight: 650; font-size: var(--step-2); line-height: 1.05; color: var(--text); transition: color 0.4s, transform 0.6s var(--ease-out); }
.module__head:hover .module__title { transform: translateX(6px); }
.module__head[aria-expanded="true"] .module__n { color: var(--flare); }
.module__head[aria-expanded="true"] .module__title { color: var(--flare); }
.module__icon { width: 18px; height: 18px; position: relative; flex: none; }
.module__icon::before, .module__icon::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.module__icon::after { transform: rotate(90deg); }
.module__head[aria-expanded="true"] .module__icon::after { transform: rotate(0); }
.module__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-out); }
.module__body > div { overflow: hidden; }
.module__body p { margin: 0; padding: 0 0 var(--space-xl); color: var(--mute); max-width: 62ch; }
@media (min-width: 720px) { .module__body p { padding-left: calc(2.2ch * 1.6 + var(--space-lg)); } }
.module__head[aria-expanded="true"] + .module__body { grid-template-rows: 1fr; }

.perks { display: grid; gap: var(--space-xl); padding: var(--space-2xl); border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, oklch(0.24 0.012 265), var(--ink-1) 55%); }
@media (min-width: 900px) { .perks { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } }
.perks__head { display: grid; gap: var(--space-sm); }
.perks__head p { margin: 0; color: var(--mute); max-width: 40ch; }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.perks li { color: var(--mute); padding-left: 28px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; background: var(--flare); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.perks b { color: var(--flare); font-weight: 600; }

/* ---------- wyniki ---------- */
.results { padding: var(--section) var(--pad-x); }
.wall { columns: 1; column-gap: var(--space-lg); }
@media (min-width: 620px) { .wall { columns: 2; } }
@media (min-width: 1000px) { .wall { columns: 3; } }
.tile {
  display: block; width: 100%; break-inside: avoid; margin: 0 0 var(--space-lg); padding: 0; border: 1px solid var(--line-soft);
  border-radius: var(--radius); background: var(--ink-1); overflow: hidden; cursor: zoom-in; text-align: left; position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out), border-color 0.4s, opacity 0.9s var(--ease-out);
}
.tile:hover { border-color: var(--chrome-mid); }
.tile img { width: 100%; }
.tile__cap { display: block; padding: 14px 16px; font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: 0.9rem; color: var(--text); border-top: 1px solid var(--line-soft); }
.js .tile[data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- uczniowie ---------- */
.students { padding: var(--section) var(--pad-x); background: linear-gradient(var(--ink-0), var(--ink-1)); }
.quotes { columns: 1; column-gap: var(--space-lg); }
@media (min-width: 680px) { .quotes { columns: 2; } }
@media (min-width: 1080px) { .quotes { columns: 3; } }
.quote { break-inside: avoid; margin: 0 0 var(--space-lg); padding: var(--space-lg); border: 1px solid var(--line-soft); border-radius: 18px; background: var(--ink-0); display: grid; gap: var(--space-md); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-family: var(--display); font-weight: 600; font-size: var(--step-1); line-height: 1.2; color: var(--flare); text-wrap: pretty; }
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { font-size: var(--step--1); color: var(--mute); }
.proof { padding: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--ink-1); cursor: zoom-in; display: block; width: 100%; transition: border-color 0.4s; }
.proof:hover { border-color: var(--chrome-mid); }
.proof img { width: 100%; max-height: 360px; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease-out); }
.proof:hover img { transform: scale(1.03); }

/* ---------- gate (CTA) ---------- */
.gate { position: relative; isolation: isolate; overflow: hidden; padding: var(--section) var(--pad-x); display: grid; }
.gate__ring { position: absolute; z-index: -1; width: min(130vw, 980px); aspect-ratio: 1; right: -30%; top: 50%; transform: translateY(-50%); display: grid; place-items: center; opacity: 0.55; }
.gate__ring .eclipse__corona { width: 100%; animation-duration: 14s; }
.gate__ring::before { content: ""; grid-area: 1 / 1; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-soft); }
.gate__ring > * { grid-area: 1 / 1; }
.gate__inner { display: grid; gap: var(--space-xl); justify-items: start; max-width: 640px; }
.gate .h2 { font-size: var(--step-4); max-width: 12ch; }
.gate__steps { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.gate__steps li { counter-increment: g; display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); color: var(--mute); }
.gate__steps li::before { content: counter(g, decimal-leading-zero); font-family: var(--display); font-stretch: 75%; font-weight: 700; color: var(--flare); padding-top: 2px; }
.gate__steps b { color: var(--text); font-weight: 600; }

/* ---------- faq ---------- */
.faq { padding: var(--section) var(--pad-x); }
.faq__list { display: grid; border-top: 1px solid var(--line-soft); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-lg) 40px var(--space-lg) 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--text); transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.4s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--flare); }
.faq details p { margin: 0; padding: 0 0 var(--space-lg); color: var(--mute); max-width: 62ch; }

/* ---------- footer ---------- */
.footer { padding: var(--space-4xl) var(--pad-x) calc(env(safe-area-inset-bottom, 0px) + var(--space-2xl)); border-top: 1px solid var(--line-soft); display: grid; gap: var(--space-md); justify-items: start; }
.footer__mark { width: 150px; }
.footer__tag { margin: 0; font-family: var(--display); font-stretch: 75%; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.7rem; color: var(--mute); }
.footer__small { margin: 0; color: var(--mute); font-size: var(--step--1); max-width: 70ch; }

/* ---------- quiz ---------- */
.quiz {
  position: fixed; inset: 0; z-index: 80; background: var(--ink-0);
  display: grid; grid-template-rows: auto auto 1fr; overflow: hidden;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.quiz.is-opening { animation: quizIn 0.7s var(--ease-out); }
.quiz.is-closing { animation: quizOut 0.45s var(--ease-in) forwards; }
@keyframes quizIn { from { clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } }
@keyframes quizOut { to { opacity: 0; transform: scale(0.98); } }
.quiz__bar { height: 2px; background: var(--line-soft); }
.quiz__bar span { display: block; height: 100%; background: var(--flare); transform-origin: left; transform: scaleX(0); transition: transform 0.7s var(--ease-out); box-shadow: 0 0 10px oklch(1 0 0 / 0.8); }
.quiz__top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); position: relative; z-index: 2; }
.quiz__count { font-family: var(--display); font-stretch: 75%; letter-spacing: 0.2em; font-size: 0.8rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.quiz__ring { position: absolute; width: min(120vw, 900px); aspect-ratio: 1; right: -35%; bottom: -40%; display: grid; place-items: center; opacity: 0.4; pointer-events: none; }
.quiz__ring > * { grid-area: 1 / 1; }
.quiz__ring::before { content: ""; grid-area: 1 / 1; width: 87.5%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-soft); }
.quiz__ring .eclipse__corona { animation-duration: 16s; }
.quiz__stage { position: relative; overflow-y: auto; overscroll-behavior: contain; perspective: 1600px; display: grid; align-items: start; padding: clamp(12px, 5vh, 72px) var(--gutter) 48px; }
.quiz__card { width: 100%; max-width: 760px; margin-inline: auto; transform-style: preserve-3d; backface-visibility: hidden; transform-origin: 50% 50%; display: grid; gap: var(--space-lg); }
.q__num { display: inline-flex; align-items: center; gap: 10px; }
.q__num b { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: linear-gradient(135deg, var(--chrome-hi), var(--chrome-mid)); color: var(--ink-0); font-family: var(--display); font-weight: 700; font-size: 0.85rem; }
.q__num svg { width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q__title:focus { outline: none; }
.q__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.02em; color: var(--flare); text-wrap: balance; }
.q__title .req { color: var(--mute); }
.q__sub { margin: calc(var(--space-sm) * -1) 0 0; color: var(--mute); max-width: 56ch; }
.q__body { margin: 0; color: var(--text); max-width: 58ch; display: grid; gap: var(--space-md); }
.q__body p { margin: 0; }
.q__body strong { color: var(--flare); }
.choices { display: grid; gap: 10px; margin: var(--space-xs) 0 0; padding: 0; border: 0; }
.choice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: oklch(0.155 0.008 265 / 0.85);
  text-align: left; cursor: pointer; line-height: 1.35; position: relative; overflow: hidden;
  transition: border-color 0.25s, background-color 0.25s, transform 0.4s var(--ease-out);
}
.choice:hover { border-color: var(--chrome-mid); background: var(--ink-2); transform: translateX(4px); }
.choice__key { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 0.8rem; color: var(--mute); transition: all 0.25s; }
.choice__check { width: 20px; height: 20px; opacity: 0; transform: scale(0.4); transition: all 0.4s var(--ease-out); fill: none; stroke: var(--ink-0); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.choice.is-picked { border-color: var(--flare); background: var(--flare); color: var(--ink-0); }
.choice.is-picked .choice__key { border-color: var(--ink-0); color: var(--ink-0); }
.choice.is-picked .choice__check { opacity: 1; transform: none; }
.choice.is-picked::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, oklch(1 0 0 / 0.7) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 0.6s var(--ease-out) forwards; }
@keyframes sheen { to { transform: translateX(100%); } }
.field { display: grid; gap: var(--space-xs); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--flare);
  font-family: var(--body); font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); padding: 10px 0 12px; border-radius: 0; outline: none;
  transition: border-color 0.3s; caret-color: var(--flare);
}
.field textarea { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); line-height: 1.5; resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.5 0.012 265); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--flare); box-shadow: 0 12px 24px -18px oklch(1 0 0 / 0.5); }
.field__err { min-height: 1.4em; margin: 0; color: var(--danger); font-size: var(--step--1); }
.field__meta { margin: 0; color: var(--mute); font-size: var(--step--1); text-align: right; font-variant-numeric: tabular-nums; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--mute); font-size: var(--step--1); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--flare); }
.consent .linklike { font-size: inherit; }
.q__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.q__hint { color: var(--mute); font-size: var(--step--1); }
.q__hint kbd { font-family: inherit; font-weight: 700; color: var(--text); }
@media (hover: none) { .q__hint { display: none; } }
.q__note { font-size: var(--step--1); color: var(--mute); padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px; }
.q__done { display: grid; gap: var(--space-lg); justify-items: start; }
.q__done .star { width: 44px; height: 44px; background: var(--flare); clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%); filter: drop-shadow(0 0 14px oklch(1 0 0)); animation: star 0.9s var(--ease-out) both; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid oklch(0.115 0.006 265 / 0.25); border-top-color: var(--ink-0); animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- lightbox / privacy ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: oklch(0.08 0.006 265 / 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox[open] { animation: pop 0.5s var(--ease-out); }
.lightbox img { max-height: 88vh; width: auto; margin-inline: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.lightbox__close { position: absolute; top: -14px; right: -6px; }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } }
.privacy { border: 1px solid var(--line); border-radius: 18px; background: var(--ink-1); max-width: min(92vw, 640px); padding: 0; }
.privacy[open] { animation: pop 0.5s var(--ease-out); }
.privacy__inner { padding: var(--space-xl); display: grid; gap: var(--space-md); font-size: var(--step--1); color: var(--mute); }
.privacy__inner p { margin: 0; }
.privacy__inner b { color: var(--text); }
.privacy__inner .btn { justify-self: start; }

/* ---------- ograniczenie ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .mind__statement .w { --o: 1; }
  .ticker__track { animation: none; }
}

/* ---------- poprawki mobile: media w osi czasu ---------- */
@media (max-width: 859px) {
  .step__media { flex-wrap: wrap; padding-bottom: 8px; }
  .phone { width: min(240px, 72%); }
  .step__badge { position: absolute; right: 0; bottom: -18px; width: min(128px, 34%); }
}
