/* Sekcje stron (StreamField): kadr wizualizacja/rysunek, skala, pasy treści,
   kroki, zespół, oferty, kontakt. Mobile-first. */

/* Nagłówek strony głównej (arkusz z tabliczką): css/hero.css. */

/* ---------- kadr: wizualizacja z rysunkiem pod suwakiem ---------- */
.stage {
    position: relative; overflow: hidden; background: var(--paper-2);
    aspect-ratio: 16 / 10; border: 1px solid var(--line); touch-action: pan-y;
}
.stage__shot, .stage__plan { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Lekkie powiększenie chowa resztki jasnych ramek ze zrzutów prezentacji na krawędziach kadru. */
.stage__shot { object-fit: cover; transform: scale(1.02); }
/* Odsłona na samym transform (kompozytor, bez przerysowywania zdjęcia co klatkę): ramka wjeżdża z lewej,
   rysunek w niej jedzie w przeciwną stronę, więc stoi w miejscu; kreska jedzie razem z krawędzią ramki. */
.stage__reveal { position: absolute; inset: 0; overflow: hidden; transform: translateX(-100%); will-change: transform; }
.stage__plan { object-fit: contain; background: #fff; transform: translateX(100%); will-change: transform; }
.stage.is-animated .stage__reveal, .stage.is-animated .stage__plan { transition: transform 0.6s var(--ease-out); }
/* Kreska = prawa krawędź warstwy na całą szerokość kadru, przesuwanej tak samo jak ramka rysunku. */
.stage__seam {
    position: absolute; inset: 0; border-right: 1px solid rgba(43, 47, 51, 0.5);
    transform: translateX(-100%); opacity: 0; pointer-events: none; will-change: transform;
}
.stage.is-animated .stage__seam { transition: transform 0.6s var(--ease-out), opacity 0.3s; }
.stage__seam.is-on { opacity: 1; }
.stage__seam::after {
    content: ""; position: absolute; top: 50%; left: 100%; width: 34px; height: 34px;
    transform: translate(-50%, -50%); border: 1px solid rgba(43, 47, 51, 0.45);
    background: rgba(255, 255, 255, 0.85); border-radius: 50%;
}
.stage__seam::before {
    content: ""; position: absolute; top: 50%; left: 100%; width: 10px; height: 1px;
    transform: translate(-50%, -50%); background: rgba(43, 47, 51, 0.7); z-index: 1;
}
.stage__wipe {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
    cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none;
}
.stage__wipe::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.stage__wipe::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: none; }
.stage__wipe:focus-visible { opacity: 1; outline-offset: -3px; }
.stage__note {
    position: absolute; left: 12px; bottom: 12px; z-index: 4; min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.92);
    padding: 10px 14px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-strong);
}
.stage__cap {
    position: absolute; right: 14px; top: 14px; z-index: 3;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: #fff; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}
.stage.is-pale .stage__cap { color: var(--muted); text-shadow: none; }

/* ---------- linia skali ---------- */
.scale { padding-block: 30px 0; }
/* Kreski rozkłada flex (równe odstępy co 1/12) — bez stylów inline, które GSAP czyści po animacji. */
.scale__line {
    display: flex; justify-content: space-between; align-items: flex-end;
    height: 30px; border-bottom: 1px solid var(--line-strong);
}
.scale__tick { flex: 0 0 1px; height: 7px; background: var(--line-strong); transform-origin: bottom; }
.scale__tick--end { height: 14px; background: var(--ink); }
.scale__ends { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; }
.scale__ends span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.scale__ends em { display: block; font-style: normal; color: var(--muted-2); padding-top: 3px; }
.scale__ends span:last-child { text-align: right; }

/* ---------- pas treści ---------- */
.band { padding-block: 40px; scroll-margin-top: var(--masthead-h); }
.band--rule { border-top: 1px solid var(--line); }
.band__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 20px; padding-bottom: 24px; }
.band__head .title { flex: 1 1 auto; }
/* Znaczniki narożne nagłówka sekcji (⌐ … ┘) — jak znaczniki cięcia na arkuszu; dorysowują się z narożnika przy
   odsłonie sekcji (animations.js). Bez skryptu i przy „ogranicz ruch” stoją narysowane. */
.theme-classic .band__head { position: relative; --mark-offset: 10px; }
.theme-classic .band__head::before, .theme-classic .band__head::after {
    content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
    border: 0 solid var(--ink-strong); transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.25s;
}
.theme-classic .band__head::before {
    left: calc(var(--mark-offset) * -1); top: calc(var(--mark-offset) * -1);
    border-top-width: 1px; border-left-width: 1px; transform-origin: 0 0;
}
.theme-classic .band__head::after {
    right: calc(var(--mark-offset) * -1); bottom: calc(24px - var(--mark-offset));
    border-bottom-width: 1px; border-right-width: 1px; transform-origin: 100% 100%;
}
.js-animations [data-anim]:not(.is-in) .band__head::before,
.js-animations [data-anim]:not(.is-in) .band__head::after { transform: scale(0); }
/* Wejście przejściem między stronami (animations.css → vt-entry): znaczniki stoją od pierwszej klatki. */
.vt-entry.js-animations [data-anim]:not(.is-in) .band__head::before,
.vt-entry.js-animations [data-anim]:not(.is-in) .band__head::after { transform: none; transition: none; }
.band__tools { display: flex; align-items: center; gap: 14px; }
.cols { display: grid; gap: 18px; }
.col { border-top: 1px solid var(--line); padding-top: 16px; }
.col h3 { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-strong); padding-bottom: 8px; }
.col p { font-size: 14px; line-height: 1.7; }
.col p + p { margin-top: 0.8em; }
.col i, .col em { color: var(--ink-strong); }
.col a { border-bottom: 1px solid var(--line-strong); }
.col__no { display: block; padding-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted-2); }
.cat-jump { text-align: left; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
@media (hover: hover) and (pointer: fine) {
    .cat-jump:hover { border-bottom-color: var(--line-strong); }
}

/* ---------- kontakt ---------- */
.contact { background: var(--paper-2); padding-block: 48px; scroll-margin-top: var(--masthead-h); }
.contact__inner { display: grid; gap: 30px; }
.contact__title {
    font-family: var(--serif); font-weight: 400; color: var(--ink-strong);
    font-size: clamp(38px, 11vw, 56px); line-height: 0.98; letter-spacing: -0.015em; margin-top: 16px;
}
.contact__title em { display: block; font-family: var(--serif-italic); font-style: italic; font-size: 0.86em; letter-spacing: -0.03em; }
.contact__note { font-size: 14px; line-height: 1.72; max-width: 38ch; margin-top: 20px; }
.contact__do { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact__do .reveal { font-size: clamp(16px, 4.6vw, 21px); }
.contact__do .btn { align-self: stretch; }
.contact__where { font-size: 13px; line-height: 1.85; color: var(--muted); }
.contact__where a { color: var(--ink); border-bottom: 1px solid transparent; }
.contact__where .dot { padding-inline: 6px; color: var(--muted-2); }
.contact__link { display: inline-flex; align-items: center; gap: 6px; }
.contact__link .icon { width: 14px; height: 14px; }
/* Telefon: bez dubli — wycenę, telefon i wiadomość ma pasek u dołu ekranu, a e-mail, adres, stronę
   i Instagram stopka tuż pod sekcją (partials/footer.html). Zostaje tytuł i zachęta. */
@media (max-width: 899px) {
    .contact__do { display: none; }
    /* Przycisk „Napisz” (sama strzałka) z prawej, na środku wysokości zachęty. */
    .contact__ask { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
    .contact__ask .contact__note { margin-top: 0; }
    .contact__write { flex: none; width: 52px; padding-inline: 0; }
    .contact__write .icon { width: 22px; height: 22px; }
    .contact__write-arrow { display: inline-flex; }
}
@media (min-width: 900px) {
    .contact__write { display: none; }
}
/* Adres z ikoną nawigacji — cały jest odnośnikiem do trasy w Mapach Google (partials/address.html). */
.address { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; vertical-align: middle; color: inherit; }
.address .icon { flex: none; width: 16px; height: 16px; transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1); }
@media (hover: hover) and (pointer: fine) {
    .address:hover .icon { transform: translate(2px, -2px); }
}

/* ---------- zamknięcie sekcji ---------- */
.closer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closer p { font-size: 15px; line-height: 1.6; max-width: 52ch; color: var(--ink-strong); }
.closer > .btn, .closer > span { flex: 1 1 220px; }
.closer > span .btn { width: 100%; }

/* ---------- karty zgłoszeń: wezwania obok siebie ---------- */
.calls { display: grid; gap: 14px; }
.call {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    padding: 26px 22px; background: var(--paper-2); border: 1px solid var(--line);
}
.call__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7.4vw, 36px); line-height: 1.05; color: var(--ink-strong); }
.call__text { font-size: 15px; line-height: 1.7; max-width: 42ch; flex: 1 1 auto; }
.call .btn { margin-top: 6px; }

/* ---------- rekrutacja: oferty | praktyki ---------- */
.split { display: grid; gap: 14px; }
.split__col {
    display: flex; flex-direction: column; gap: 16px;
    padding: 26px 22px; background: #fff; border: 1px solid var(--line-strong);
}
.split__col--alt { background: var(--paper-2); border-color: var(--line); }
.split__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 8vw, 40px); line-height: 1.04; color: var(--ink-strong); }
.split__text { font-size: 15px; line-height: 1.7; max-width: 46ch; flex: 1 1 auto; }
.split__text p + p { margin-top: 0.8em; }
.split__footer { margin-top: auto; padding-top: 6px; }
.offers { list-style: none; border-top: 1px solid var(--line); }
.offer { display: grid; gap: 6px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.offer__title { font-size: 18px; font-weight: 400; color: var(--ink-strong); }
.offer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.offer__actions .btn { min-height: 42px; padding: 10px 16px; }
@media (hover: hover) and (pointer: fine) {
    .offer__title:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- zespół ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; grid-auto-rows: 1fr; }
.person { border: 1px solid var(--line); padding: 10px; background: #fff; display: flex; flex-direction: column; }
.person__portrait {
    aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2);
    display: flex; align-items: center; justify-content: center;
}
.person__portrait--empty { border: 1px dashed var(--line-strong); }
.person__portrait img { width: 100%; height: 100%; object-fit: cover; }
.person__portrait span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.person figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); min-height: 60px; }
.person b { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink-strong); }
.person figcaption span { display: block; padding-top: 5px; font-family: var(--mono); font-size: 10px; line-height: 1.6; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- oferty pracy ---------- */
.jobs { list-style: none; }
.jobs li { border-top: 1px solid var(--line); }
.jobs li:last-child { border-bottom: 1px solid var(--line); }
.job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 18px; }
.job b { display: block; font-size: 16px; font-weight: 500; color: var(--ink-strong); }
.job__terms { display: block; padding-top: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.job__cta { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-strong); }
.jobs__empty { border: 1px dashed var(--line-strong); padding: 16px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 72ch; }

/* ---------- podstrona: nagłówek ---------- */
.page-head { padding-block: 32px 8px; }
.page-head__meta { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.page-head__lead { margin-top: 16px; font-size: 16px; line-height: 1.7; max-width: 60ch; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 621px) {
    .cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .team { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .closer > .btn, .closer > span { flex: 0 0 auto; }
    .contact__do .btn { align-self: flex-start; }
    .calls--2, .calls--3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
    .stage { max-height: min(62vh, 540px); }
    .stage__note { left: 18px; bottom: 18px; }
    .scale { padding-block: clamp(30px, 4vw, 52px) 0; }
    .band { padding-block: clamp(48px, 5.4vw, 76px); }
    .theme-classic .band__head { --mark-offset: 18px; }
    .cols--four { grid-template-columns: repeat(4, 1fr); }
    .calls--3 { grid-template-columns: repeat(3, 1fr); }
    .calls { gap: clamp(16px, 2vw, 28px); }
    .call { padding: clamp(28px, 3vw, 44px); }
    .split { gap: clamp(16px, 2vw, 28px); }
    .split__col { padding: clamp(28px, 3vw, 44px); }
    .cols--three { grid-template-columns: repeat(3, 1fr); }
    .cols--two .col { grid-column: span 1; }
    .contact { padding-block: clamp(56px, 6vw, 88px); }
    .contact__inner { grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
    .contact__title { font-size: clamp(48px, 4.8vw, 70px); }
    .team { grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.4vw, 20px); }
    .page-head { padding-block: clamp(40px, 5vw, 70px) 8px; }
}

.steps { list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) {
    .cols--four .col--wide { grid-column: span 2; }
}
