/*
Theme Name: Zrobimy to lepiej
Theme URI: https://zrobimytolepiej.pl/
Description: Czerń, biel i żółty. Duży krój, ziarno, okręgi i ruch sterowany przewijaniem.
Version: 2.0.0
Author: Zrobimy to lepiej
Requires PHP: 8.2
Text Domain: zrobimytolepiej
*/

@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic-ext.woff2") format("woff2"); font-style: italic; font-weight: 400; 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; }

:root {
	color-scheme: dark;
	--black: #050505;
	--white: #fafafa;
	--yellow: #e8b23a;
	--grey: #8b8b87;
	--line: rgba(250, 250, 250, .14);
	--paper-grey: #6a6a66;
	--paper-line: rgba(5, 5, 5, .14);
	--sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--serif: "Instrument Serif", "Times New Roman", serif;
	--pad: clamp(16px, 2.2vw, 32px);
	--out: cubic-bezier(.16, 1, .3, 1);
	--inout: cubic-bezier(.65, 0, .35, 1);
	scrollbar-color: #333 var(--black);
	scroll-padding-top: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
::selection { background: var(--yellow); color: var(--black); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: -80px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }

em, .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.caps { font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; line-height: 1.35; }
.dim { color: var(--grey); }
.y { color: var(--yellow); }
.h2 { font-size: clamp(40px, 6vw, 92px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.h2 .dim { display: block; }

/* Ziarno na całej stronie */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .11; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Wejście przy przewijaniu */
.js [data-in] { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity .9s var(--out), transform 1.1s var(--out), filter .9s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-in].in { opacity: 1; transform: none; filter: none; }

/* Wstęp z licznikiem */
.pre { display: none; }
.pre-on .pre { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 44px; background: var(--black); transition: clip-path .9s var(--inout); clip-path: inset(0 0 0 0); }
.pre-on.pre-out .pre { clip-path: inset(0 0 100% 0); }
.pre-ring { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.pre-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pre-ring circle { fill: none; stroke: var(--white); stroke-width: 1; stroke-dasharray: 100; stroke-dashoffset: 100; }
.pre-num { font-size: 14px; font-variant-numeric: tabular-nums; }
.pre-say { display: flex; gap: .45em; padding: 0 var(--pad); flex-wrap: wrap; justify-content: center; }
.pre-say span { color: #4a4a48; transition: color .25s; }
.pre-say span.on { color: var(--white); }
.pre-say span.on.y { color: var(--yellow); }
.pre-on body { overflow: hidden; }

/* Nagłówek */
.head { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--pad); color: var(--white); pointer-events: none; transition: color .35s; }
.head > * { pointer-events: auto; }
.mark { font-size: clamp(23px, 2vw, 29px); font-weight: 600; line-height: 1; letter-spacing: -.055em; text-transform: none; display: inline-flex; align-items: baseline; }
.mark b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.16em; letter-spacing: -.03em; margin-left: .04em; color: var(--yellow); transition: color .35s; }
.nav { display: flex; gap: .5em; margin-left: auto; margin-right: clamp(24px, 8vw, 140px); }
.nav a { position: relative; }
.nav a:not(:last-child)::after { content: ","; }
.nav a span { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .45s var(--out); padding-bottom: 3px; }
.nav a:hover span { background-size: 100% 1px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; border-radius: 99px; background: var(--white); color: var(--black); transition: background-color .35s, color .35s, transform .5s var(--out); will-change: transform; }
.pill:hover { background: var(--yellow); color: var(--black); }
.head.on-light { color: var(--black); }
.head.on-light .mark b { color: var(--black); }
.head.on-light .pill { background: var(--black); color: var(--white); }
.head.on-light .pill:hover { background: var(--white); color: var(--black); }
.head.on-paper .mark b { color: #b98a16; }
.head.on-paper .pill:hover { background: var(--yellow); }

/* Podziałka z lewej */
.ruler { position: fixed; left: 0; top: 50%; z-index: 55; width: 22px; height: min(56vh, 520px); transform: translateY(-50%); pointer-events: none; mix-blend-mode: difference; background: repeating-linear-gradient(to bottom, #fff 0 1px, transparent 1px 12px) left / 7px 100% no-repeat; opacity: .55; }
.ruler i { position: absolute; left: 0; top: calc(var(--sp, 0) * 100%); width: 22px; height: 1px; background: #fff; }
.ruler i::before, .ruler i::after { content: ""; position: absolute; left: 0; width: 12px; height: 1px; background: #fff; }
.ruler i::before { top: -12px; }
.ruler i::after { top: 12px; }

/* Okręgi */
.rings { position: absolute; left: 50%; top: 50%; width: max(120vw, 120vh); aspect-ratio: 1; pointer-events: none; transform: translate(-50%, -50%) translate(calc(var(--mx, 0) * 22px), calc(var(--my, 0) * 22px)) scale(var(--rs, 1)); }
.rings i { position: absolute; left: 50%; top: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); animation: breathe 9s ease-in-out infinite alternate; }
.rings i:nth-child(1) { width: 28%; height: 28%; }
.rings i:nth-child(2) { width: 46%; height: 46%; animation-delay: -3s; margin-left: 4%; }
.rings i:nth-child(3) { width: 70%; height: 70%; animation-delay: -6s; margin-left: -3%; }
.rings i:nth-child(4) { width: 98%; height: 98%; animation-delay: -1.5s; }
@keyframes breathe { to { transform: translate(-50%, -50%) scale(1.045); } }
/* Okręgi w hero: pojawiają się od środka po kolei, przy przewijaniu znikają razem z napisem (sama przezroczystość). */
.hero { isolation: isolate; }
.hero .rings { z-index: -1; opacity: calc(1 - var(--hp, 0) * 1.4); will-change: transform, opacity; }
.hero .rings i:nth-child(1) { --k: 0; }
.hero .rings i:nth-child(2) { --k: 1; }
.hero .rings i:nth-child(3) { --k: 2; }
.hero .rings i:nth-child(4) { --k: 3; }
.js .hero .rings i { opacity: 0; }
.js.ready .hero .rings i { opacity: 1; transition: opacity 1.4s ease; transition-delay: calc(var(--k) * 180ms + 150ms); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--pad) 24px; overflow: clip; }
.hero-kicker { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2 * var(--pad)); text-align: center; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; font-weight: 500; }
.hero-h1 { font-size: inherit; font-weight: inherit; }
.hero-big { display: block; font-size: min(17.2vw, 31vh); font-weight: 500; line-height: .86; letter-spacing: -.065em; transform-origin: left bottom; transform: translateY(calc(var(--hp, 0) * -9vh)) scale(calc(1 - var(--hp, 0) * .1)); filter: blur(calc(var(--hp, 0) * 18px)); opacity: calc(1 - var(--hp, 0) * 1.3); will-change: transform, filter; }
/* Każde słowo ma własną maskę (clip-path nie psuje linii bazowej), łamanie wierszy przez <br>: na komputerze „Zrobimy to / lepiej.”, na telefonie „Zrobimy / to lepiej.”. */
.hero-big .w { display: inline-block; clip-path: inset(0); padding: .12em .1em .2em; margin: -.12em -.1em -.2em; }
.hero-big .in { display: inline-block; }
.hero-big .br-m { display: none; }
.hero-big .w-lepiej { margin-left: calc(21% - .1em); }
.hero-big em { color: var(--yellow); letter-spacing: -.05em; padding-right: .06em; }
/* Wejście: słowa wysuwają się spod linii po kolei (sam transform, bez rozmycia). */
.js .hero-big .in { transform: translateY(135%); }
.js.ready .hero-big .in { transform: none; transition: transform 1.3s var(--out); transition-delay: calc(var(--i, 0) * 120ms + 60ms); }
.js .hero-kicker, .js .hero-foot { opacity: 0; }
.js.ready .hero-kicker, .js.ready .hero-foot { opacity: 1; transition: opacity 1.2s .7s; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(20px, 4vh, 44px); }
.clock b { font-weight: 700; }
.clock .sep { margin: 0 .9em; display: inline-block; transform: skewX(-18deg) scaleY(1.5); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 44px; height: 1px; background: currentColor; transform-origin: left; animation: cue 2.4s var(--inout) infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* Manifest */
.manifest { position: relative; height: 240vh; }
.manifest-pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 0 var(--pad); overflow: clip; }
.manifest p { position: relative; max-width: 17.5em; font-size: clamp(30px, 4.5vw, 66px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.manifest .w { opacity: var(--o, 1); transition: opacity .2s linear; }
.manifest em .w { color: var(--yellow); }

/* Żółty pas */
.band { position: relative; background: var(--yellow); color: var(--black); padding: clamp(56px, 9vw, 120px) 0; overflow: clip; }
.band-label { padding: 0 var(--pad); margin-bottom: clamp(28px, 4vw, 56px); display: flex; gap: 12px; align-items: center; }
.band-label::before { content: ""; width: 22px; height: 1px; background: currentColor; transform: rotate(-58deg); }
.row { display: flex; width: max-content; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(54px, 8.4vw, 132px); line-height: 1.12; letter-spacing: -.03em; will-change: transform; transform: translate3d(var(--x, 0), 0, 0) skewX(var(--sk, 0deg)); }
.row + .row { border-top: 1px solid var(--paper-line); margin-top: clamp(14px, 2vw, 28px); padding-top: clamp(14px, 2vw, 28px); }
.row span { display: inline-flex; align-items: center; }
.row span::after { content: ""; width: 1px; height: .78em; background: currentColor; transform: rotate(24deg); margin: 0 .52em; }

/* Co robimy */
.work { position: relative; }
.work-pin { position: relative; padding: clamp(80px, 12vw, 160px) var(--pad); overflow: clip; }
.svc-list { position: relative; display: grid; gap: 72px; }
.svc-title { font-size: clamp(46px, 7vw, 104px); font-weight: 500; line-height: .95; letter-spacing: -.055em; text-align: left; display: flex; align-items: baseline; gap: .28em; }
.svc-title sup { font-size: 12px; letter-spacing: .07em; font-weight: 500; transform: translateY(-.9em); color: var(--yellow); }
.svc-viz { margin: 28px 0 24px; }
.svc-desc { max-width: 34em; }
.svc-desc p { font-size: 17px; color: #c9c9c5; margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; }

.viz { position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(160deg, #111, #080808); overflow: hidden; }
.bw-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.bw-bar i { width: 7px; height: 7px; border-radius: 50%; background: #2c2c2a; }
.bw-bar span { flex: 1; height: 14px; margin-left: 10px; border-radius: 99px; background: #171716; }
.bw-body { padding: 9% 8%; display: grid; gap: 12px; align-content: start; }
.bw-body > * { display: block; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--out); transition-delay: calc(var(--d) * 110ms + 150ms); }
.is-active .bw-body > * { transform: none; }
.bw-h { height: 26px; width: 78%; background: var(--white); border-radius: 3px; --d: 0; }
.bw-h.s { width: 52%; --d: 1; }
.bw-t { height: 7px; width: 64%; background: #3a3a37; border-radius: 3px; --d: 2; margin-top: 8px; }
.bw-t.s { width: 46%; --d: 3; margin-top: 0; }
.bw-btn { height: 34px; width: 132px; border-radius: 99px; background: var(--yellow); --d: 4; margin-top: 10px; }
.bw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; --d: 5; margin-top: 14px; }
.bw-grid i { aspect-ratio: 4 / 3; border-radius: 4px; background: #1b1b1a; border: 1px solid var(--line); }

.viz-mk { display: grid; place-items: center; }
.viz-mk .orbit { position: absolute; left: 50%; top: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.viz-mk .orbit:nth-child(1) { width: 26%; aspect-ratio: 1; }
.viz-mk .orbit:nth-child(2) { width: 52%; aspect-ratio: 1; }
.viz-mk .orbit:nth-child(3) { width: 82%; aspect-ratio: 1; }
.viz-mk .core { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(232, 178, 58, .5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 46px rgba(232, 178, 58, 0); } }
.viz-mk .ray { position: absolute; left: 50%; top: 50%; width: 46%; height: 0; transform-origin: left; transform: rotate(var(--a)); }
.viz-mk .ray b { position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--white); opacity: 0; animation: inward 3.6s var(--inout) infinite; animation-delay: var(--t); animation-play-state: paused; }
.is-active .viz-mk .ray b { animation-play-state: running; }
@keyframes inward { 0% { opacity: 0; transform: translateX(0); } 18% { opacity: 1; } 82% { opacity: 1; background: var(--white); } 100% { opacity: 0; transform: translateX(calc(-1 * var(--len))); background: var(--yellow); } }

/* Jak pracujemy */
.paper { background: var(--white); color: var(--black); }
.process { padding: clamp(88px, 12vw, 170px) var(--pad); }
.process .h2 .dim { color: #a3a39e; display: inline; }
.process-top { display: grid; gap: 20px; margin-bottom: clamp(48px, 8vw, 110px); }
.process-top .caps { color: var(--paper-grey); }
.steps { position: relative; display: grid; gap: 40px; padding-left: 34px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--paper-line); }
.steps::after { background: var(--black); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -34px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 1px solid var(--black); z-index: 1; transition: background-color .4s, box-shadow .6s var(--out); }
.step.on::before { background: var(--yellow); box-shadow: 0 0 0 6px rgba(232, 178, 58, .28); }
.step .caps { color: var(--paper-grey); }
.step h3 { font-size: clamp(28px, 2.9vw, 42px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; margin: 10px 0 12px; }
.step p { font-size: 17px; color: #3b3b38; max-width: 22em; }
.step { opacity: .35; transition: opacity .6s; }
.step.on { opacity: 1; }
html:not(.js) .step { opacity: 1; }

/* Realizacje (pojawią się, gdy będą dane) */
.cases { padding: clamp(80px, 11vw, 150px) var(--pad); }
.cases-grid { display: grid; gap: 20px; margin-top: clamp(36px, 5vw, 72px); }
.case { display: grid; gap: 20px; }
.case-img { aspect-ratio: 3 / 2; background: #111; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--out); }
.case:hover .case-img img { transform: scale(1.04); }
.case-card { position: relative; border: 1px solid var(--line); padding: 20px; min-height: 240px; display: flex; flex-direction: column; outline: 1px solid var(--line); outline-offset: -12px; }
.case-card > * { margin: 12px; }
.case-card h3 { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.case-card .no { position: absolute; right: 20px; top: 14px; font-size: 56px; letter-spacing: -.05em; line-height: 1; }
.case-card .yr { margin-top: auto; color: var(--grey); }
.case-card .arr { position: absolute; right: 32px; bottom: 32px; width: 34px; height: 34px; color: var(--yellow); transition: transform .5s var(--out); }
.case:hover .arr { transform: translate(-5px, -5px); }

/* Pytania */
.faq { padding: clamp(88px, 12vw, 170px) var(--pad); display: grid; gap: clamp(36px, 6vw, 80px); }
.faq-list { border-top: 1px solid var(--line); }
.q { border-bottom: 1px solid var(--line); }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.02em; }
.q button i { position: relative; flex: none; width: 18px; height: 18px; transition: transform .5s var(--out); }
.q button i::before, .q button i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; }
.q button i::after { transform: rotate(90deg); transition: transform .5s var(--out); }
.q button[aria-expanded="true"] i { transform: rotate(180deg); color: var(--yellow); }
.q button[aria-expanded="true"] i::after { transform: rotate(0); }
.q-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--out); }
.q.open .q-a { grid-template-rows: 1fr; }
.q-a > div { overflow: hidden; min-height: 0; }
.q-a p { padding: 0 0 28px; max-width: 36em; color: #c9c9c5; }
html:not(.js) .q-a { grid-template-rows: 1fr; }

/* Napisz do nas */
.cta { position: relative; background: var(--yellow); color: var(--black); min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad); text-align: center; overflow: clip; }
.cta-link { display: grid; justify-items: center; gap: clamp(10px, 1.6vw, 22px); }
.cta-link .big { font-size: clamp(56px, 11.5vw, 190px); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.cta-link .big em { letter-spacing: -.04em; }
.arrow { width: clamp(40px, 5vw, 68px); height: clamp(40px, 5vw, 68px); transition: transform .7s var(--out); }
.cta-link:hover .arrow.up { transform: translateY(-14px); }
.cta-link:hover .arrow.down { transform: translateY(14px); }
.arrow.down { animation: nudge-d 2.6s var(--inout) infinite; }
.arrow.up { animation: nudge-u 2.6s var(--inout) infinite; }
@keyframes nudge-d { 50% { translate: 0 8px; } }
@keyframes nudge-u { 50% { translate: 0 -8px; } }
.cta-mail { margin-top: clamp(28px, 4vw, 56px); display: grid; justify-items: center; gap: 14px; }
.cta-mail a { font-size: clamp(20px, 2.6vw, 38px); letter-spacing: -.04em; font-weight: 500; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--out); overflow-wrap: anywhere; }
.cta-mail a:hover { background-size: 0 1px; background-position: right bottom; }
.copy { border: 1px solid var(--black); border-radius: 99px; padding: 9px 18px; transition: background-color .3s, color .3s; }
.copy:hover, .copy.done { background: var(--black); color: var(--yellow); }

/* Stopka */
.foot { position: relative; padding: clamp(28px, 3vw, 48px) var(--pad) 28px; overflow: clip; }
.foot-mark { font-weight: 600; line-height: .9; font-size: 15vw; white-space: nowrap; display: flex; align-items: baseline; letter-spacing: -.065em; margin-left: -.04em; }
.foot-mark span { display: inline-block; }
.foot-mark .l2 { color: var(--yellow); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: -.045em; }
.js .foot-mark span { transform: translateY(105%); transition: transform 1.1s var(--out); transition-delay: calc(var(--n) * 34ms); }
.js .foot-mark.in span { transform: none; }
.foot-mark-clip { overflow: hidden; padding: 1vw 0 3.6vw; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-top: clamp(40px, 7vw, 110px); color: var(--grey); }
.foot-row a { color: var(--white); }
.foot-row a:hover { color: var(--yellow); }
.foot-mail { font-size: clamp(22px, 3.2vw, 44px); letter-spacing: -.045em; font-weight: 500; margin-top: clamp(40px, 6vw, 90px); display: inline-block; overflow-wrap: anywhere; }
.foot-mail:hover { color: var(--yellow); }

/* Podstrony */
.subpage { padding: 170px var(--pad) 110px; max-width: 900px; }
.subpage h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 500; letter-spacing: -.055em; line-height: .95; margin-bottom: 56px; }
.prose h2 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin: 44px 0 10px; }
.prose p { color: #c9c9c5; max-width: 38em; }
.prose p + p { margin-top: 12px; }
.prose a { background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 100% 1px no-repeat; }
.btn-line { display: inline-flex; margin-top: 36px; border: 1px solid var(--white); border-radius: 99px; padding: 14px 26px; transition: background-color .3s, color .3s; }
.btn-line:hover { background: var(--white); color: var(--black); }

@media (min-width: 900px) {
	.steps { grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0 0; }
	.steps::before, .steps::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
	.steps::after { transform-origin: left; transform: scaleX(var(--p, 0)); }
	.step::before { left: 0; top: -40px; }
	.faq { grid-template-columns: 5fr 7fr; align-items: start; }
	.faq-head { position: sticky; top: 130px; }
	.cases-grid { gap: 52px 20px; }
	.case { grid-template-columns: 1fr 1fr; }
	.case:nth-child(even) .case-img { order: 2; }

	/* Scena „co robimy”: lista po lewej, obraz i opis zmieniają się przy przewijaniu */
	.work.scene { height: 260vh; }
	.work.scene .work-pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-block: 0; }
	.work.scene .svc-list { grid-template-columns: 5fr 4fr 3.4fr; grid-template-rows: auto auto; column-gap: clamp(28px, 4vw, 64px); row-gap: 36px; align-items: center; padding-left: 28px; }
	.work.scene .svc { display: contents; }
	.work.scene .svc-title { grid-column: 1; color: #55554f; transition: color .6s, transform .8s var(--out); }
	.work.scene .svc:nth-child(1) .svc-title { grid-row: 1; align-self: end; }
	.work.scene .svc:nth-child(2) .svc-title { grid-row: 2; align-self: start; }
	.work.scene .svc-title:hover { color: #a0a09b; }
	.work.scene .svc.is-active .svc-title { color: var(--white); transform: translateX(14px); }
	.work.scene .svc-viz, .work.scene .svc-desc { grid-row: 1 / span 2; margin: 0; opacity: 0; filter: blur(18px); transform: scale(.96); transition: opacity .7s, filter .8s, transform .9s var(--out); pointer-events: none; }
	.work.scene .svc-viz { grid-column: 2; }
	.work.scene .svc-desc { grid-column: 3; }
	.work.scene .svc.is-active .svc-viz, .work.scene .svc.is-active .svc-desc { opacity: 1; filter: none; transform: none; pointer-events: auto; transition-delay: .12s; }
	.work.scene .svc-desc p { font-size: 15px; }
}

@media (max-width: 899px) {
	.nav, .ruler { display: none; }
	.pill { min-height: 46px; padding: 0 22px; }
	/* Telefon: podtytuł na górze pod nagłówkiem, napis w trzech wierszach na całą szerokość ekranu („Zrobimy” ma ok. 3,45 em). */
	.hero-kicker { top: 96px; left: var(--pad); transform: none; text-align: left; width: auto; }
	.hero-big { font-size: min(26.4vw, 16svh); }
	.hero-big .br-m { display: inline; }
	.hero-big .br-d { display: none; }
	.hero-big .w-lepiej { margin-left: -.1em; }
	.manifest { height: 200vh; }
	.scroll-cue { display: none; }
}

/* Na dotyku bez rozmycia sterowanego przewijaniem: filtr na dużym tekście liczony co klatkę szarpie na telefonach. */
@media (hover: none), (max-aspect-ratio: 1/1) {
	.hero-big { filter: none; will-change: transform, opacity; }
	.js [data-in] { filter: none; transition: opacity .9s var(--out), transform 1.1s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	.js [data-in], .js .hero-big .in, .js .foot-mark span { opacity: 1; transform: none; filter: none; }
	.hero-big { transform: none; filter: none; opacity: 1; }
	.manifest { height: auto; padding: 120px 0; }
	.manifest-pin { position: static; height: auto; }
	.bw-body > * { transform: none; }
	.step { opacity: 1; }
}
