/* ROKE · More than clothes
   Brief: CLAUDE.md. Prawie czarna strona (80% --ink) z jasnymi przerwami (--paper).
   Hasła: Anton w wersalikach. Spokojne nagłówki: Playfair Display. Tekst: Inter.
   Kolory haftu tylko przy haśle z rękawa. Narożniki proste, przyciski prostokątne. */

:root {
  --ink: #0E0E0F;
  --ink-2: #151516;
  --ink-3: #1C1C1E;
  --paper: #F1ECE2;
  --bone: #E8E0D0;
  --ash: #8A867E;
  --line: rgba(232, 224, 208, 0.14);
  --gutter: clamp(20px, 2.4vw, 36px);
  --section: clamp(96px, 12vw, 200px);
  --hdr: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  /* pięć stopni pisma */
  --fs-sm: 15px;
  --fs-body: 17px;
  --fs-h3: clamp(28px, 2.6vw, 40px);
  --fs-h2: clamp(52px, 7vw, 112px);
  --fs-lead: clamp(19px, 1.6vw, 23px);
  --fs-xl: clamp(96px, 17vw, 300px);
}
@media (min-width: 900px) { :root { --fs-body: 18px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { background: var(--ink); color: var(--bone); font: 400 var(--fs-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--bone); color: var(--ink); }

.wrap { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--bone); color: var(--ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 16px; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: currentColor; transition: text-underline-offset 0.3s var(--ease), opacity 0.3s; }
.link:hover { text-underline-offset: 8px; }
.hide-s { display: none; }
@media (min-width: 700px) { .hide-s { display: inline; } }

/* przyciski: wersaliki, rozstrzelone, krótkie (brief marki) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font-family: var(--sans); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; background: var(--ink-3); color: var(--bone); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease); }
.btn:hover { background: var(--bone); color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid:hover { background: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 18px; }

/* logo z pliku źródłowego, w kolorze tekstu */
.mark { display: block; width: 46px; aspect-ratio: 600 / 484; background: currentColor; -webkit-mask: url(../media/logo-white.png) center / contain no-repeat; mask: url(../media/logo-white.png) center / contain no-repeat; }

/* ---------- ekran ładowania ---------- */
.loader { display: none; }
.intro .loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 28px; background: var(--ink); transition: opacity 0.4s var(--ease), visibility 0.4s; }
.loader-logo { width: 92px; animation: spin-in 0.8s var(--ease) both; }
.loader-bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: var(--bone); transform-origin: left; animation: bar 0.7s var(--ease) both; }
.intro.intro-done .loader { opacity: 0; visibility: hidden; }
/* bez JS ekran i tak znika po 2 s */
.intro .loader { animation: gone 0.4s 2s forwards; }
@keyframes gone { to { opacity: 0; visibility: hidden; } }
@keyframes spin-in { from { transform: rotate(-180deg) scale(0.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- nagłówek: zwykły pasek, po zjechaniu pełne tło ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); transition: background-color 0.4s var(--ease); }
.top.is-solid { background: var(--ink); }
.top-nav { display: none; gap: 32px; font-size: var(--fs-sm); }
.top-nav a { text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.top-nav a:hover, .top-nav a[aria-current] { opacity: 1; }
.top-logo { grid-column: 1; justify-self: start; color: var(--bone); }
.top-logo .mark { width: 44px; transition: transform 0.6s var(--ease); }
.top-logo:hover .mark { transform: rotate(-180deg); }
.top-cta { grid-column: 3; justify-self: end; }
@media (min-width: 900px) {
  .top-nav { display: flex; }
  .top-logo { grid-column: 2; justify-self: center; }
}

/* ---------- plakat: hasło stoi, plecy przesuwają się w oknie ---------- */
.poster { --ph: min(calc((100vw - 2 * var(--gutter) - 20px) / 5.95), 120px); --band-t: calc(var(--hdr) + var(--ph) * 1.86 + 12px); --band-b: 196px; --win-h: calc(100svh - var(--band-t) - var(--band-b)); --win-w: min(calc(var(--win-h) * 0.8), 100vw - 2 * var(--gutter)); position: relative; }
.poster-stage { position: sticky; top: 0; z-index: 3; height: 100svh; display: grid; grid-template-rows: var(--band-t) 1fr var(--band-b); pointer-events: none; }
.poster-h { grid-row: 1; align-self: end; padding: 0 var(--gutter) 12px; background: var(--ink); font-family: var(--display); font-weight: 400; font-size: var(--ph); line-height: 0.93; letter-spacing: 0.005em; text-transform: uppercase; color: var(--bone); }
.poster-h span { display: block; white-space: nowrap; }
.poster-h .sr-only { position: absolute; }
/* górny pas zaczyna się od samej góry ekranu */
.poster-stage::before { content: ""; grid-row: 1; grid-column: 1; background: var(--ink); }
.poster-h { grid-column: 1; position: relative; }
.poster-foot { grid-row: 3; display: grid; align-content: start; gap: 16px; padding: 16px var(--gutter) 20px; background: var(--ink); pointer-events: auto; }
.poster-sub { max-width: 44ch; font-size: var(--fs-sm); line-height: 1.45; }
.poster-proof { color: var(--ash); font-size: var(--fs-sm); min-height: 1.4em; display: none; }
.poster-cta { width: 100%; }
.poster-run { position: relative; z-index: 1; width: var(--win-w); margin: -100svh auto 0; padding: var(--band-t) 0 var(--band-b); display: grid; gap: 14svh; }
.frame { position: relative; height: var(--win-h); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); }
.frame figcaption { display: none; }
.sound { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 10px 14px; font-size: var(--fs-sm); background: var(--ink); transition: background-color 0.2s, color 0.2s; }
.sound:hover { background: var(--bone); color: var(--ink); }
.sound[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.sound::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--ash); vertical-align: 1px; }
.sound[aria-pressed="true"]::before { background: var(--ink); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

@media (min-width: 900px) {
  /* hasło w jednej linii na całą szerokość: szerokość tekstu Anton = 8,98 × rozmiar */
  .poster { --ph: min(calc((100vw - 2 * var(--gutter) - 20px) / 8.98), 240px); --band-t: calc(var(--hdr) + var(--ph) * 0.93 + 24px); --band-b: 40px; }
  .poster-h span { display: inline; }
  .poster-h { white-space: nowrap; padding-bottom: 20px; }
  .poster-stage { grid-template-columns: 1fr var(--win-w) 1fr; }
  .poster-h, .poster-stage::before { grid-column: 1 / -1; }
  .poster-foot { grid-row: 2; grid-column: 1; align-self: end; justify-items: start; gap: 20px; padding: 0 40px 0 var(--gutter); background: none; }
  .poster-sub { font-size: var(--fs-lead); line-height: 1.4; max-width: 30ch; }
  .poster-proof { display: block; order: 3; }
  .poster-cta { width: auto; }
  .frame figcaption { display: block; position: absolute; left: calc(100% + 40px); bottom: 0; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: var(--fs-lead); color: var(--bone); }
}

/* ---------- Seria 01: pełne kadry z kartą ---------- */
.look { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; }
.look picture { display: contents; }
.look-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.06)); transition: transform 1.6s var(--ease); }
.look.is-in .look-bg { --z: 1; }
.look-card { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: 1fr 96px; gap: 8px 16px; align-content: start; padding: 24px 20px 28px; background: var(--ink); }
.look-card > * { grid-column: 1; }
.look-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h3); line-height: 1; margin-bottom: 4px; }
.look-card p { font-size: var(--fs-sm); }
.look-price b { font-weight: 600; }
.look-thumb { grid-column: 2; grid-row: 1 / span 3; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper); }
.look-cta { margin-top: 12px; grid-column: 1 / -1; }
.sold { grid-column: 1 / -1; margin-top: 8px; }
.sold-dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; max-width: 300px; }
.sold-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--bone)); opacity: 0; transform: scale(0.4); transition: opacity 0.4s var(--ease) calc(var(--k) * 35ms), transform 0.5s var(--ease) calc(var(--k) * 35ms); }
.look.is-in .sold-dots i, html:not(.js) .sold-dots i { opacity: 1; transform: none; }
.sold p { margin-top: 10px; color: var(--ash); }
.haft-line { font-weight: 600; letter-spacing: 0.06em; line-height: 1.45; font-size: var(--fs-body) !important; }
.haft-line span, .haft-big span { color: var(--c); }
/* haft „szyje się” litera po literze */
.js .stitch span { display: inline-block; opacity: 0; transform: translateY(6px) rotate(-6deg); transition: opacity 0.3s var(--ease) calc(var(--k, 0) * 55ms), transform 0.4s var(--ease) calc(var(--k, 0) * 55ms); }
.js .is-in .stitch span, .js .stitch.is-in span { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .look { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: var(--hdr) var(--gutter) 40px; column-gap: var(--gutter); }
  .look-card { position: relative; inset: auto; grid-column: var(--col); display: flex; flex-direction: column; gap: 10px; min-height: 52svh; padding: 28px; }
  .look-thumb { width: 100%; aspect-ratio: 3 / 2; margin: 10px 0; order: 0; }
  .look-cta { margin-top: auto; }
  .sold { margin-top: auto; }
}

/* ---------- R.O.K.E.: arkusze ---------- */
.roke { padding-top: var(--section); }
.roke-head { display: grid; gap: 20px; margin-bottom: 48px; }
.roke-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h2); line-height: 0.92; }
.roke-head p { max-width: 36ch; }
.sheet { position: sticky; top: calc(var(--hdr) + var(--i) * 52px); overflow: hidden; display: grid; align-content: start; min-height: 70svh; }
.sheet-h { order: 0; height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter); }
.sheet-h h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1; }
.sheet-h p { font-size: var(--fs-sm); opacity: 0.7; }
.sheet-img { order: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sheet-txt { order: 2; padding: 20px var(--gutter) 32px; display: grid; gap: 12px; justify-items: start; }
.sheet-txt p { max-width: 40ch; }
.sheet-l { display: none; }
.s-dark { background: var(--ink-2); color: var(--bone); }
.s-paper { background: var(--paper); color: var(--ink); }
.s-dark2 { background: var(--ink-3); color: var(--bone); }
.s-bone { background: var(--bone); color: var(--ink); }

@media (min-width: 900px) {
  .roke-head { grid-template-columns: 7fr 5fr; align-items: end; padding-bottom: 0; }
  .sheet { top: calc(var(--hdr) + var(--i) * 72px); height: calc(100svh - var(--hdr) - var(--i) * 72px); min-height: 0; grid-template-columns: repeat(12, 1fr); grid-template-rows: 72px 1fr; column-gap: var(--gutter); padding: 0 var(--gutter); }
  .sheet-h { grid-column: 1 / -1; height: 72px; padding: 0; gap: 20px; }
  .sheet-h h3 { font-size: var(--fs-h3); }
  .sheet-txt { grid-column: 1 / 6; grid-row: 2; align-self: end; padding: 0 0 48px; }
  .sheet-txt p { font-size: var(--fs-lead); line-height: 1.4; }
  .sheet-img { grid-column: 7 / -1; grid-row: 2; aspect-ratio: auto; height: 100%; min-height: 0; }
  .sheet-l { display: block; grid-column: 1 / 6; grid-row: 2; align-self: start; margin-top: 0.1em; font-family: var(--display); font-size: min(24vw, 46svh); line-height: 0.9; }
}

/* ---------- Drop 02 ---------- */
.vote-sec { position: relative; isolation: isolate; }
.vote-bg { width: 100%; height: 70svh; object-fit: cover; }
.vote-in { padding: 40px var(--gutter) var(--section); }
.vote-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h2); line-height: 0.92; }
.vote-lead { margin-top: 20px; max-width: 40ch; }
.poll { margin-top: 32px; }
.poll fieldset { border: 0; display: grid; gap: 8px; }
.vote { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; text-align: left; padding: 20px 22px 24px; background: var(--ink-3); transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease); }
.vote:hover { background: var(--bone); color: var(--ink); }
.vote:active { transform: scale(0.985); }
.vote-name { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; }
.vote-desc { grid-column: 1; font-size: var(--fs-sm); opacity: 0.75; }
.vote-pct { grid-column: 2; grid-row: 1; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.vote-bar { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--bone); transform-origin: left; transform: scaleX(var(--pct, 0)); transition: transform 1.2s var(--ease); }
.poll.is-voted .vote { cursor: default; }
.poll.is-voted .vote:hover { background: var(--ink-3); color: var(--bone); }
.poll.is-voted .vote-pct { font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); letter-spacing: 0; }
.vote.is-mine .vote-name::after { content: " · Twój głos"; font-family: var(--sans); font-size: var(--fs-sm); opacity: 0.7; }
.poll-note { margin-top: 16px; font-size: var(--fs-sm); color: var(--ash); }

@media (min-width: 900px) {
  .vote-sec { min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding: var(--section) var(--gutter); align-items: end; }
  .vote-bg { position: absolute; inset: 0; z-index: -1; height: 100%; filter: brightness(0.62); }
  .vote-in { grid-column: 7 / -1; padding: 0; }
  .vote-lead { font-size: var(--fs-lead); line-height: 1.4; }
}

/* ---------- Member Pass: jasna przerwa ---------- */
.pass { background: var(--paper); color: var(--ink); padding-block: var(--section); }
.pass-grid { display: grid; gap: 32px; }
.pass-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pass-h { position: relative; z-index: 1; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h3); line-height: 1; }
/* glify Anton wystają nad linię, więc odstęp liczony w em */
.pass-num { font-family: var(--display); font-size: var(--fs-xl); line-height: 0.9; margin: 0.2em 0 24px; }
.pass-txt p:last-child { max-width: 40ch; }
@media (min-width: 900px) {
  .pass-grid { grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; }
  .pass-img img { aspect-ratio: 4 / 3; }
}

/* ---------- za kulisami ---------- */
.behind { padding-block: var(--section) 0; }
.behind-band { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.behind-grid { display: grid; gap: 32px; padding-top: 40px; }
.behind-a img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.behind-h { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.12; margin-bottom: 24px; }
.behind-txt p + p { margin-top: 14px; }
.behind-txt p { max-width: 46ch; }
.sign { margin-top: 24px !important; font-family: var(--serif); font-style: italic; color: var(--ash); }
@media (min-width: 900px) {
  .behind-band { aspect-ratio: 21 / 7; }
  .behind-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding-top: 0; align-items: start; }
  /* Kuba wchodzi na pas zdjęcia, tekst zostaje na ciemnym tle */
  .behind-a { grid-column: 1 / 5; margin-top: -14vw; }
  .behind-txt { grid-column: 6 / 12; padding-top: 64px; }
    .behind-txt p { font-size: var(--fs-lead); line-height: 1.4; }
}

/* ---------- pytania ---------- */
.faq { padding-block: var(--section); overflow: hidden; }
.faq-grid { display: grid; gap: 48px; }
.faq-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h2); line-height: 0.92; }
.size-table { width: 100%; margin-top: 32px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-table caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: var(--fs-sm); color: var(--ash); }
.size-table th, .size-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; } /* taste-skill-ignore: real table */
.size-table thead th { color: var(--ash); font-size: var(--fs-sm); }
.size-table tbody th { font-weight: 600; }
.faq-list { margin-top: 40px; display: grid; gap: 4px; }
.faq-list details { padding: 4px 0; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 10px 0; cursor: pointer; list-style: none; font-size: var(--fs-lead); line-height: 1.4; transition: opacity 0.2s; }
.faq-list summary:hover { opacity: 0.75; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list p { padding: 4px 0 18px; max-width: 56ch; color: var(--ash); }
.faq-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.faq-pics { position: relative; padding-bottom: 12%; }
.faq-tall { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.faq-sq { position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
  .faq-col { grid-column: 1 / 6; }
  .faq-pics { grid-column: 7 / -1; order: 0; margin-top: calc(-1 * var(--section)); margin-bottom: 80px; padding-bottom: 0; }
  .faq-tall { aspect-ratio: 3 / 4; height: 100%; }
  .faq-sq { right: auto; left: -40px; bottom: -40px; width: 34%; }
}
@media (max-width: 899px) { .faq-pics { order: -1; } }

/* ---------- stopka: jasne pole, hasło na pełną szerokość ---------- */
.foot { background: var(--paper); color: var(--ink); padding-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.foot-name { font-family: var(--display); text-transform: uppercase; font-size: 14.6vw; line-height: 0.86; white-space: nowrap; letter-spacing: -0.005em; }
.foot-row { display: grid; gap: 40px; margin-top: 56px; }
.foot-places { display: grid; gap: 6px; font-size: var(--fs-h3); line-height: 1.2; overflow-wrap: anywhere; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--fs-sm); }
.foot-cols li + li { margin-top: 8px; }
.foot-legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(64px, 8vw, 96px); padding: 20px 0 28px; font-size: var(--fs-sm); }
.foot-mark { display: inline-flex; align-items: center; gap: 12px; }
.foot-mark .mark { width: 40px; }
@media (min-width: 900px) {
  .foot-name { font-size: calc(min(1440px, 100vw - 2 * var(--gutter)) / 7.55); }
  .foot-row { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-top: 72px; }
  .foot-places { grid-column: 1 / 6; }
  .foot-cols { grid-column: 7 / -1; grid-template-columns: repeat(3, 1fr); }
}

/* ---------- wejścia przy przewijaniu ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); padding: 12px 18px; background: var(--bone); color: var(--ink); font-size: var(--fs-sm); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .stitch span { opacity: 1; transform: none; }
  .look-bg { transform: none; }
}

/* ---------- strona manifestu ---------- */
.m-hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-content: end; padding: 120px var(--gutter) 48px; overflow: hidden; }
.m-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); animation: drift 24s var(--ease) both; }
.m-hero::after { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(transparent, rgba(14, 14, 15, 0.85)); } /* taste-skill-ignore: scrim over the photo */
@keyframes drift { from { transform: scale(1.1); } to { transform: none; } }
.m-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(88px, 22vw, 360px); line-height: 0.82; }
.m-lead { margin-top: 20px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; max-width: 34ch; }
.m-toc { display: none; }
.m-ch { position: relative; padding-block: var(--section); }
.m-ch.c-dark { background: var(--ink-2); }
.m-ch.c-paper { background: var(--paper); color: var(--ink); }
.m-grid { display: grid; gap: 28px; }
.m-letter { font-family: var(--display); font-size: 36vw; line-height: 0.78; text-transform: uppercase; margin-bottom: 8px; }
.m-name { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.05; }
.m-sub { margin-top: 10px; font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); letter-spacing: 0.01em; opacity: 0.6; }
.m-body { margin-top: 24px; }
.m-body p { max-width: 42ch; }
.m-body p + p { margin-top: 14px; }
.m-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* na telefonie zdjęcie pierwsze, litera tuż pod nim */
@media (max-width: 899px) { .m-grid img { order: -1; } .m-letter { margin-top: 12px; } }
.m-end { padding-block: var(--section); text-align: center; }
.m-end-h { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.12; }
.m-end-lead { margin: 16px auto 0; max-width: 40ch; color: var(--ash); }
.haft-big { font-family: var(--display); text-transform: uppercase; font-size: clamp(44px, 7vw, 120px); line-height: 0.95; margin: 40px 0 44px; }
@media (min-width: 900px) {
  .m-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
  .m-letter { grid-column: 1 / 5; grid-row: 1; font-size: min(78svh, 34vw); margin: 0; }
  .m-txt { grid-column: 5 / 8; grid-row: 1; padding-bottom: 8px; }
  .m-grid img { grid-column: 8 / -1; grid-row: 1; }
  .m-ch.flip .m-letter { grid-column: 9 / -1; text-align: right; }
  .m-ch.flip .m-txt { grid-column: 6 / 9; }
  .m-ch.flip .m-grid img { grid-column: 1 / 6; }
  .m-ch .wrap { padding-right: 0; }
  .m-toc { display: grid; gap: 8px; position: fixed; left: var(--gutter); top: calc(var(--hdr) + 12px); z-index: 40; padding: 14px 18px; background: var(--ink); color: var(--bone); font-size: var(--fs-sm); transition: opacity 0.3s, visibility 0.3s; }
  .m-toc.is-off { opacity: 0; visibility: hidden; }
  .m-toc a { text-decoration: none; opacity: 0.5; transition: opacity 0.3s, transform 0.3s var(--ease); }
  .m-toc a.is-on { opacity: 1; transform: translateX(8px); }
}

/* ---------- regulamin i prywatność ---------- */
.doc-page { background: var(--ink); }
.doc-top { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; font-size: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; }
.brand .logo { width: 40px; aspect-ratio: 600 / 484; background: currentColor; -webkit-mask: url(../media/logo-white.png) center / contain no-repeat; mask: url(../media/logo-white.png) center / contain no-repeat; }
.link-plain { color: var(--bone); text-underline-offset: 3px; }
.doc { max-width: calc(46rem + 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(48px, 8vw, 96px) var(--section); }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 80px); text-transform: uppercase; line-height: 0.95; }
.doc-lead { margin-top: 20px; font-size: 20px; line-height: 1.4; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding: 20px 24px; background: var(--ink-2); }
.doc section { margin-top: clamp(56px, 7vw, 80px); scroll-margin-top: 24px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 20px; }
.doc p + p { margin-top: 0.9em; }
.doc ol { padding-left: 1.4em; list-style: decimal; }
.doc ol li + li, .doc-list li + li { margin-top: 0.75em; }
.doc ol li::marker { color: var(--ash); font-variant-numeric: tabular-nums; }
.doc-list b { font-weight: 600; }
.doc-box { margin-top: 24px; padding: 24px; background: var(--ink-2); }
.doc-box p + p { margin-top: 1.1em; }
.doc-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.doc-table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 15px; line-height: 1.45; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); } /* taste-skill-ignore: real table */
.doc-table th { color: var(--ash); font-weight: 600; }
.doc-foot { padding-block: 32px; font-size: 14px; color: var(--ash); background: var(--ink-2); }
@media print { .doc-top, .doc-toc, .doc-foot { display: none; } body { background: #fff; color: #000; } .doc-box, .doc-toc { background: none; border: 1px solid #000; } } /* taste-skill-ignore: print only */
