/* 08.10 PRÓBA TEAM (?tm=1): nakładka dla inc/team-proba-tm.php. Bez dopisku nic się nie ładuje. */

/* biała sekcja z falą: przepis z dive2.css (#dive-trust, #dive-faq), tu pod klasą .tm-w */
body.tm .tm-w{position:relative;z-index:2;background:#fff;color:#0b141b;
  --tx:#0b141b;--dim:rgba(11,20,27,.72);--faint:rgba(11,20,27,.5);--hair:rgba(11,20,27,.12);--mint:#177a67;--glass:#fff;--glass-shadow:0 24px 50px -34px rgba(11,20,27,.3)}
body.tm .tm-w :is(h2.sec-title,h3){color:#0b141b;text-shadow:none}
body.tm main .tm-w .card{background:#fff;border-color:rgba(11,20,27,.12);-webkit-backdrop-filter:none;backdrop-filter:none}
body.tm main .tm-w .card::after{display:none}
body.tm .tm-w::before,body.tm .tm-w::after{content:"";display:block;position:absolute;left:0;right:0;height:clamp(48px,6.5vw,104px);background:#fff;pointer-events:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V104C520 96 1010 44 1440 0V120Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V104C520 96 1010 44 1440 0V120Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
body.tm .tm-w::before{bottom:100%;margin-bottom:-1px}
body.tm .tm-w::after{top:100%;margin-top:-1px;transform:scale(-1,-1)}
body.tm .tm-w+.tm-w::before,body.tm .tm-w:has(+.tm-w)::after{display:none}
/* ciemny sąsiad robi miejsce na falę */
body.tm main .sec:not(.tm-w):has(+.tm-w){padding-bottom:calc(var(--sec) + clamp(48px,6.5vw,104px))}
body.tm main .tm-w+.sec:not(.tm-w){padding-top:calc(var(--sec) + clamp(48px,6.5vw,104px))}

/* góra (th-1, th-2): kolaż zespołu widoczny w całości pod menu, tekst na środku pod nim albo nad nim */
body.tm:is(.th-1,.th-2) .subhero-photo{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding:148px 0 calc(clamp(48px,6.5vw,104px) + 64px)}
body.tm:is(.th-1,.th-2) .subhero-photo::before{display:none}
body.tm:is(.th-1,.th-2) .subhero-photo .subhero-bg{position:static;width:100%;height:auto;margin:0;filter:none}
body.tm:is(.th-1,.th-2) .subhero-photo .subhero-bg img{display:block;position:static;width:100%;height:auto;object-fit:contain}
body.tm:is(.th-1,.th-2) .subhero-photo>.wrap{padding:60px 6vw 0;text-align:center}
body.tm:is(.th-1,.th-2) .subhero-photo>.wrap>:is(.eyebrow,.trust-mini,.hero-cta){display:flex;justify-content:center}
body.tm:is(.th-1,.th-2) .subhero-photo>.wrap>:is(h1,.lead){margin-inline:auto;text-align:center;text-wrap:balance}
body.tm.th-2 .subhero-photo{padding-top:150px}
/* th-4 (Ola 21:00): kolaż w swoich kolorach, biała mgła pod tekstem zamiast ciemnej, tekst ciemny. U samej góry zostaje wąski ciemny pas, bo menu jest białe. */
body.tm.th-4 .subhero-photo .subhero-bg{filter:none}
body.tm.th-4 .subhero-photo::before{background:linear-gradient(180deg,rgba(3,8,14,.66) 0,rgba(3,8,14,.3) 90px,rgba(3,8,14,0) 170px),radial-gradient(64% 62% at 34% 56%,rgba(255,255,255,.93) 0%,rgba(255,255,255,.8) 45%,rgba(255,255,255,0) 82%),linear-gradient(180deg,rgba(255,255,255,0) 72%,#fff 100%)}
body.tm.th-4 .subhero-photo :is(h1,.lead,.trust-mini,.trust-mini strong){color:#0b141b;text-shadow:none}
body.tm.th-4 .subhero-photo .lead{color:rgba(11,20,27,.8)}
body.tm.th-4 .subhero-photo .trust-mini{color:rgba(11,20,27,.62)}
body.tm.th-4 .subhero-photo .eyebrow{color:#177a67}
body.tm.th-2 .subhero-photo>.wrap{order:-1;padding:0 6vw 56px}

/* tm-ph (dopisek tw=2): zdjęcie jako nieruchome tło sekcji z ludźmi. Warstwa .tm-bg przykleja się do okna (sticky) na czas przewijania sekcji; bez background-attachment:fixed. */
body.tm .tm-w.tm-ph{background:none;overflow:clip}
body.tm .tm-w.tm-ph::before,body.tm .tm-w.tm-ph::after{display:none}
body.tm .tm-ph>.tm-bg{position:sticky;top:0;z-index:0;height:100vh;margin:calc(var(--sec)*-1) -6vw -100vh;background:url(tlo-ludzie.jpg) center/cover no-repeat;pointer-events:none}
body.tm .tm-ph>.wrap{position:relative;z-index:1}
body.tm .tm-w.tm-ph>.wrap>:is(h2.sec-title,.tm-intro,.eyebrow){color:#fff;text-shadow:0 1px 16px rgba(3,8,14,.5)}
body.tm main .tm-w.tm-ph+.sec:not(.tm-w){padding-top:var(--sec)}

/* ludzie: akapit o zespole pod tytułem, karty bez poświaty przy najechaniu */
body.tm .team-bios h2.sec-title:has(+.tm-intro){margin-bottom:18px}
body.tm .team-bios .tm-intro{margin-bottom:44px}
body.tm .team-bios .card:hover{box-shadow:var(--glass-shadow)}
body.tm .tm-w .card:hover{border-color:rgba(23,122,103,.5)}

/* ===== SZKIC 08.10, 20:41: trzy kierunki kart ludzi (tk-1..3), sam CSS na obecnym kodzie kart. Do dopracowania po wyborze Oli. ===== */
@property --tma{syntax:'<angle>';inherits:false;initial-value:0deg}

/* tk-1 pieczątka: wysoki portret w ramce jak odbitka, okrągła pieczęć logo w rogu, falka pod imieniem */
body.tm.tk-1 main .team-bios .card{padding:12px 12px 22px;border-radius:6px;box-shadow:0 1px 0 rgba(11,20,27,.05),0 22px 44px -30px rgba(11,20,27,.4)}
body.tm.tk-1 .team-bios .card>:not(.card-photo){margin-inline:12px}
body.tm.tk-1 .team-bios .card-photo{height:220px;border-radius:3px;overflow:visible;margin-bottom:22px} /* Ola 08.10, 20:46: zdjęcie normalnej wielkości, nie wielki portret (było 4:5) */
body.tm.tk-1 .team-bios .card-photo img{border-radius:3px}
body.tm.tk-1 .team-bios .card-photo::after{content:"";position:absolute;right:12px;bottom:-20px;width:62px;height:62px;border-radius:50%;background:#fff url(../img/logo-240.webp) center/cover;box-shadow:0 0 0 3px #fff,0 8px 16px -10px rgba(11,20,27,.5);transform:rotate(-12deg);transition:transform .6s cubic-bezier(.2,.8,.2,1)}
body.tm.tk-1 .team-bios .card:hover .card-photo::after{transform:rotate(8deg)}
body.tm.tk-1 .team-bios h3.card-name{font-size:27px;line-height:1.1;margin-bottom:12px}
body.tm.tk-1 .team-bios h3.card-name::after{content:"";display:block;width:54px;height:8px;margin-top:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 8' fill='none' stroke='%23177a67' stroke-width='1.6'%3E%3Cpath d='M0 4c4.5-4 9-4 13.5 0s9 4 13.5 0 9-4 13.5 0 9 4 13.5 0'/%3E%3C/svg%3E") no-repeat}
body.tm.tk-1 .team-bios p.cmeta{display:inline-flex;padding:5px 9px;border:1px solid rgba(11,20,27,.28);border-radius:3px;letter-spacing:.12em;color:rgba(11,20,27,.7)}

/* tk-1 ruch i cień (08.10, 20:50). Skille: calypso-awwwards (krzywa .16,1,.3,1, wejście po kolei co 70 ms, ruch do 30 px, raz),
   animate Emila Kowalskiego (najechanie tylko dla myszy, poniżej 300 ms, nic nie startuje od zera), beautiful-shadows (cień z sześciu cienkich warstw zamiast jednej plamy). */
body.tm.tk-1 main .team-bios .card{border:0;box-shadow:0 0 0 1px rgba(11,20,27,.06),0 1px 1px -.5px rgba(11,20,27,.06),0 3px 3px -1.5px rgba(11,20,27,.06),0 6px 6px -3px rgba(11,20,27,.06),0 12px 12px -6px rgba(11,20,27,.06),0 24px 24px -12px rgba(11,20,27,.06)}
@keyframes tm-card-in{from{opacity:0;transform:translateY(24px)}}
@keyframes tm-stamp{from{opacity:0;transform:rotate(-28deg) scale(1.4)}}
body.tm.tk-1 .team-bios .card.reveal.in{animation:tm-card-in .7s cubic-bezier(.16,1,.3,1) backwards}
body.tm.tk-1 .team-bios .card.reveal.in:nth-child(3n+2){animation-delay:.07s}
body.tm.tk-1 .team-bios .card.reveal.in:nth-child(3n){animation-delay:.14s}
/* pieczęć „przybija się” chwilę po wejściu karty */
body.tm.tk-1 .team-bios .card.reveal:not(.in) .card-photo::after{opacity:0}
body.tm.tk-1 .team-bios .card.reveal.in .card-photo::after{animation:tm-stamp .5s cubic-bezier(.16,1,.3,1) .45s backwards}
body.tm.tk-1 .team-bios .card.reveal.in:nth-child(3n+2) .card-photo::after{animation-delay:.52s}
body.tm.tk-1 .team-bios .card.reveal.in:nth-child(3n) .card-photo::after{animation-delay:.59s}
body.tm.tk-1 .team-bios .card-photo::after{transition:transform .28s cubic-bezier(.23,1,.32,1)}
body.tm.tk-1 .team-bios h3.card-name::after{background-repeat:repeat-x;transition:width .28s cubic-bezier(.23,1,.32,1)}
body.tm.tk-1 .team-bios .card:hover .card-photo::after{transform:rotate(-12deg)}
@media (hover:hover) and (pointer:fine){
  body.tm.tk-1 .team-bios .card:hover .card-photo::after{transform:rotate(8deg)}
  body.tm.tk-1 .team-bios .card:hover h3.card-name::after{width:108px}
}
@media (prefers-reduced-motion:reduce){body.tm.tk-1 .team-bios .card.reveal.in,body.tm.tk-1 .team-bios .card.reveal.in .card-photo::after{animation:none}}

/* tk-1b (dopisek tk=4; Ola 08.10, 20:47): zdjęcie większe, na całą szerokość karty, dołem rozpływa się w biel (maska, skill css-alpha-masking);
   rola i imię wchodzą na rozmycie, więc karta nie rośnie. Pieczęć stoi po prawej na linii rozmycia. */
body.tm.tk-1.tk-1b main .team-bios .card{padding:0 0 22px;border-radius:8px;overflow:hidden}
body.tm.tk-1.tk-1b .team-bios .card>:not(.card-photo){margin-inline:24px;position:relative;z-index:1}
body.tm.tk-1.tk-1b .team-bios .card-photo{height:300px;margin:0 0 -74px;border-radius:0}
body.tm.tk-1.tk-1b .team-bios .card-photo img{border-radius:0;-webkit-mask-image:linear-gradient(#000 40%,rgba(0,0,0,.16) 71%,transparent 88%);mask-image:linear-gradient(#000 40%,rgba(0,0,0,.16) 71%,transparent 88%)}
body.tm.tk-1.tk-1b .team-bios .card-photo::after{right:22px;bottom:30px;z-index:2}
body.tm.tk-1.tk-1b .team-bios :is(p.kicker,h3.card-name){text-shadow:0 0 12px #fff,0 0 4px #fff}
body.tm.tk-1.tk-1b .team-bios p.kicker{color:#0f5e50}

/* tk-1c (dopisek tk=5; Ola 08.10, 20:49): zdjęcie wypełnia całą kartę, tekst stoi u dołu na białej mgle; po „Read more” mgła zakrywa zdjęcie i widać cały życiorys.
   Skill high-end-visual-design: kierunek „Soft Structuralism” (biel, lekkie unoszące się karty, miękki cień). Bez rozmycia tła pod tekstem: skill ostrzega, że rozmycie w przewijanej treści obciąża kartę graficzną. */
body.tm.tk-1.tk-1c main .team-bios .card{display:flex;flex-direction:column;justify-content:flex-end;min-height:520px;padding:0 0 22px;border-radius:10px;overflow:hidden}
body.tm.tk-1.tk-1c .team-bios .card-photo{position:absolute;inset:0;height:auto;margin:0;border-radius:0}
body.tm.tk-1.tk-1c .team-bios .card-photo img{border-radius:0}
body.tm.tk-1.tk-1c .team-bios .card::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(rgba(255,255,255,0) 40%,rgba(255,255,255,.82) 58%,#fff 70%);transition:background-color .25s ease}
body.tm.tk-1.tk-1c .team-bios .card.open::before{background-color:rgba(255,255,255,.93)}
body.tm.tk-1.tk-1c .team-bios .card>:not(.card-photo){position:relative;z-index:2;margin-inline:24px}
body.tm.tk-1.tk-1c .team-bios .card-photo::after{top:16px;right:16px;bottom:auto;z-index:2}
body.tm.tk-1.tk-1c.js-tm .team-bios .card:not(.open) .lead.sm{-webkit-line-clamp:2;line-clamp:2}
body.tm.tk-1.tk-1c .team-bios p.kicker{color:#0f5e50}
body.tm.tk-1.tk-1c .team-bios :is(p.cmeta,.tm-more){align-self:flex-start}

/* tk-1d (dopisek tk=6): zdjęcie w ramce (karta jako oprawa z marginesem, zdjęcie z mniejszym zaokrągleniem: „Double-Bezel” ze skilla high-end-visual-design),
   biała metka z rolą i imieniem wchodzi na dół zdjęcia, pieczęć stoi na jej krawędzi („Z-Axis Cascade”: elementy nachodzą na siebie jak kartki). */
body.tm.tk-1.tk-1d main .team-bios .card{padding:8px 8px 20px;border-radius:16px;overflow:hidden}
/* Ola 21:00-21:01: czyste zdjęcia w pierwotnej wielkości, bez rozmytych pasów i bez zwężania kart; kadry poprawi podmiana zdjęć na końcu. */
body.tm.tk-1.tk-1d .team-bios .card-photo{height:320px;margin:0;border-radius:9px;overflow:hidden}
body.tm.tk-1.tk-1d .team-bios .card-photo img{border-radius:0}
body.tm.tk-1.tk-1d .team-bios .card::before{content:"";position:absolute;z-index:1;left:20px;right:20px;top:252px;bottom:0;background:#fff;border-radius:10px 10px 0 0;box-shadow:0 -12px 24px -16px rgba(11,20,27,.4)}
body.tm.tk-1.tk-1d .team-bios .card>:not(.card-photo){position:relative;z-index:2;margin-inline:30px}
body.tm.tk-1.tk-1d .team-bios .card>.card-photo+*{margin-top:-58px}
body.tm.tk-1.tk-1d .team-bios .card-photo::after{right:26px;bottom:44px;z-index:3}
body.tm.tk-1.tk-1d.js-tm .team-bios .card:not(.open) .lead.sm{-webkit-line-clamp:3;line-clamp:3}

/* tk-2 iluminator: portret w kole, pierścień rysuje się przy najechaniu, wszystko na środku, bez ramki karty */
body.tm.tk-2 main .team-bios .card{padding:8px 14px 0;border:0;background:none;box-shadow:none;text-align:center}
body.tm.tk-2 main .team-bios .card:hover{transform:none;box-shadow:none}
body.tm.tk-2 .team-bios .card-photo{width:220px;height:220px;margin:10px auto 30px;border-radius:50%;overflow:visible}
body.tm.tk-2 .team-bios .card-photo img{border-radius:50%}
body.tm.tk-2 .team-bios .card-photo::before,body.tm.tk-2 .team-bios .card-photo::after{content:"";position:absolute;inset:-10px;border-radius:50%}
body.tm.tk-2 .team-bios .card-photo::before{border:1px solid rgba(11,20,27,.16)}
body.tm.tk-2 .team-bios .card-photo::after{background:conic-gradient(from -90deg,#177a67 var(--tma),transparent 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1.5px));transition:--tma 1s cubic-bezier(.3,.7,.2,1)}
body.tm.tk-2 .team-bios .card:hover .card-photo::after{--tma:360deg}
body.tm.tk-2 .team-bios h3.card-name{font-size:30px}
body.tm.tk-2 .team-bios p.cmeta{justify-content:center}
body.tm.tk-2 .team-bios .lead.sm{margin-inline:auto}
body.tm.tk-2 .tm-more{margin-inline:auto}

/* tk-3 jak kolaż: zdjęcie w granatowo-morskiej tonacji kolażu, kolor wraca przy najechaniu; imię na białej metce wchodzi na zdjęcie; rola w kolorze pasa z kolażu */
body.tm.tk-3 main .team-bios .card{display:flex;flex-direction:column;padding:0 0 26px;border:0;border-radius:4px;overflow:hidden}
body.tm.tk-3 .team-bios .card>:not(.card-photo){margin-inline:24px}
body.tm.tk-3 .team-bios .card-photo{order:0;height:auto;aspect-ratio:4/5;margin:0;border-radius:0}
body.tm.tk-3 .team-bios .card-photo img{filter:grayscale(1) contrast(1.3);transition:filter .7s ease}
body.tm.tk-3 .team-bios .card-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(165deg,#0d3261 10%,#1e9a8e 95%);mix-blend-mode:color;transition:opacity .7s ease}
body.tm.tk-3 .team-bios .card:hover .card-photo img{filter:none}
body.tm.tk-3 .team-bios .card:hover .card-photo::after{opacity:0}
body.tm.tk-3 .team-bios h3.card-name{order:1;position:relative;align-self:flex-start;margin:-38px 0 14px;padding:12px 22px 0 24px;background:#fff;font-size:38px;line-height:1}
body.tm.tk-3 .team-bios p.kicker{order:2;color:#9c3a6e;margin-bottom:6px}
body.tm.tk-3 .team-bios p.cmeta{order:3}
body.tm.tk-3 .team-bios .lead.sm{order:4}
body.tm.tk-3 .tm-more{order:5;align-self:flex-start}
@media (prefers-reduced-motion:reduce){body.tm .team-bios .card-photo::after,body.tm .team-bios .card-photo img{transition:none}}

/* tl-1: krótkie karty, tekst przycięty do 5 linijek, reszta pod „Read more” */
body.tm.tl-1.js-tm .team-bios .card:not(.open) .lead.sm{display:-webkit-box;-webkit-line-clamp:5;line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
body.tm .tm-more{display:block;margin-top:14px;padding:6px 0;background:none;border:0;color:var(--mint);font:500 13px/1.2 var(--ui,inherit);letter-spacing:.02em;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
body.tm .tm-more:focus-visible{outline:2px solid var(--mint);outline-offset:4px;border-radius:4px}

/* tl-2: zdjęcie obok tekstu, cały życiorys (układ obecnej strony) */
body.tm.tl-2 .team-bios .grid-3{grid-template-columns:1fr;max-width:1000px;margin-inline:auto}
body.tm.tl-2 .team-bios .card{display:grid;grid-template-columns:250px 1fr;column-gap:40px;align-content:start;padding:28px}
body.tm.tl-2 .team-bios .card>.card-photo{grid-row:1/span 6;align-self:stretch;height:auto;min-height:290px;margin:0}
body.tm.tl-2 .team-bios .card>.card-photo img{position:absolute;inset:0}
body.tm.tl-2 .team-bios .card>:not(.card-photo){grid-column:2}
body.tm.tl-2 .team-bios .card>.kicker{margin-top:6px}
body.tm.tl-2 .team-bios .card .lead.sm{max-width:none}

/* historia: zdjęcie obok tekstu */
/* 08.10 21:10 (Ola: tekst „wyjechany” poza zdjęcie): zdjęcie ma dokładnie wysokość kolumny tekstu, nie własne proporcje */
body.tm .tm-story>.wrap{display:grid;grid-template-columns:5fr 6fr;gap:clamp(32px,5vw,72px);align-items:stretch}
body.tm .tm-story-img{position:relative;margin:0;min-height:420px;border-radius:var(--r-md);overflow:hidden}
body.tm .tm-story-img img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
body.tm .tm-story-img img{opacity:0;transition:opacity 1.4s ease}
body.tm .tm-story-img img.on{opacity:1}
body.tm .tm-story h2.sec-title{margin-bottom:24px}
/* ts-3: zdjęcie spod wody w tle historii, mocno przyciemnione, żeby tekst był czytelny; gładka ciemna (ts-1) dostaje cienką kreskę, żeby nie zlała się z zaufaniem nad nią */
body.tm .tm-story.tm-sbg{overflow:hidden}
body.tm .tm-sbg-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.8)}
body.tm .tm-story.tm-sbg::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(5,12,18,.9) 0,rgba(5,12,18,.74) 45%,rgba(5,12,18,.9) 100%)}
body.tm .tm-story.tm-sbg>.wrap{position:relative;z-index:2}
body.tm .tm-story:not(.tm-w):not(.tm-sbg){border-top:1px solid rgba(255,255,255,.09)}
body.tm .tm-story .lead{font-size:var(--fs-small);line-height:1.7;max-width:58ch}
body.tm .tm-story .lead+.lead{margin-top:14px}

/* ── tp-1 (Ola 21:30): jedno zdjęcie jako nieruchome tło pod zaufaniem i historią. Warstwa przykleja się do okna (sticky), bez background-attachment:fixed (nie działa na iPhonie) ── */
body.tm .tm-par{position:relative;overflow:clip} /* clip: zdjęcie nie wyjeżdża poza pudełko (bez tego na wysokim ekranie było je widać pod zakończeniem); clip, nie hidden, bo hidden wyłącza przyklejanie */
body.tm .tm-par-bg{position:sticky;top:0;z-index:0;height:100vh;margin-bottom:-100vh;background:url(tlo-saliny-2000.webp) 50% 40%/cover no-repeat;pointer-events:none}
body.tm .tm-par-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,16,22,.74),rgba(6,16,22,.66))}
body.tm .tm-par>.sec{position:relative;z-index:1;background:none;border-top:0}
body.tm .tm-par .tm-story .lead{color:rgba(255,255,255,.9)}
body.tm .tm-par .eyebrow{color:#b4ebdd} /* test 08.10: miętowa etykieta na zdjęciu miała kontrast 4,4:1, jaśniejsza mięta przechodzi próg 4,5 */
/* test 08.10: etykiety, role i języki miały 10 px; DESIGN.md: etykiety min. 11 px */
body.tm main :is(.eyebrow,.kicker,.cmeta){font-size:11px}
body.tm main .tm-w+.tm-par>.sec:nth-child(2){padding-top:calc(var(--sec) + clamp(48px,6.5vw,104px))}
body.tm main .tm-par:has(+.tm-w)>.sec:last-child{padding-bottom:calc(var(--sec) + clamp(48px,6.5vw,104px))}

/* linia między zakończeniem a stopką: próba z Team zatwierdzona 08.10 21:39 i przeniesiona do assets/css/footer.css (koniec pliku), działa na wszystkich stronach z ciemnym zakończeniem */

/* ── galeria (tg): biała sekcja, mozaika dokładana porcjami przyciskiem na dole, powiększenie w natywnym oknie <dialog> ── */
body.tm .tm-gal-head{text-align:center;margin-bottom:clamp(28px,3.4vw,48px)}
body.tm .tm-gal-head h2.sec-title{margin:0}
body.tm .tm-gal-head .eyebrow{font-family:var(--ui)}
body.tm .tm-gal-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:clamp(150px,14.5vw,215px);grid-auto-flow:dense;gap:12px}
body.tm .tm-gal-grid.reveal{opacity:1;transform:none}
body.tm .tm-g{position:relative;display:block;overflow:hidden;border-radius:var(--r-sm);background:#e8edef;cursor:zoom-in}
body.tm .tm-g[hidden]{display:none}
body.tm .tm-g img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.16,1,.3,1)}
body.tm .tm-g:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
body.tm .tm-gal-grid .tm-g.f{grid-column:span 2;grid-row:span 2}
body.tm .tm-gal-grid .tm-g.p{grid-row:span 2}
body.tm .tm-gal-grid .tm-g.w{grid-column:span 2}
body.tm .tm-gal-foot{margin:clamp(28px,3.2vw,44px) 0 0;text-align:center}
body.tm .tm-gal-foot[hidden]{display:none}
body.tm .tm-gal-more{cursor:pointer;font-family:var(--ui);background:#0b141b;color:#fff;border-color:#0b141b;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body.tm .tm-gal-more:hover{background:#17303d;box-shadow:none}
/* wejście kafelków po kolei, także każdej dokładanej porcji (krzywa i odstępy wg calypso-awwwards: 60 ms, przesunięcie 22 px) */
body.tm .tm-gal-grid .tm-g{opacity:0}
body.tm .tm-gal-grid.in .tm-g{animation:tm-g-in .8s cubic-bezier(.16,1,.3,1) calc(var(--i)*60ms) both}
@keyframes tm-g-in{from{opacity:0;transform:translateY(22px) scale(.985)}to{opacity:1;transform:none}}
@media (hover:hover) and (pointer:fine){body.tm .tm-g:hover img{transform:scale(1.045)}}
@media (prefers-reduced-motion:reduce){body.tm .tm-gal-grid .tm-g{opacity:1;animation:none!important}body.tm .tm-g img{transition:none}body.tm dialog[open]{animation:none!important}}
html:has(dialog.tm-zoom[open]){overflow:hidden}
body.tm dialog.tm-zoom{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;color:#fff;background:rgba(4,10,15,.96)}
body.tm dialog.tm-zoom[open]{display:grid;place-items:center;animation:tm-dlg .28s ease-out}
@keyframes tm-dlg{from{opacity:0}to{opacity:1}}
body.tm dialog.tm-zoom img{max-width:calc(100vw - 168px);max-height:calc(100dvh - 88px);width:auto;height:auto;border-radius:8px}
body.tm dialog.tm-zoom button{position:absolute;display:grid;place-items:center;width:48px;height:48px;padding:0 0 4px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font:300 28px/1 var(--ui);cursor:pointer;transition:background .2s ease}
body.tm dialog.tm-zoom button:hover{background:rgba(255,255,255,.2)}
body.tm dialog.tm-zoom button:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
body.tm dialog.tm-zoom .x{top:18px;right:22px}
body.tm dialog.tm-zoom .pv{left:22px;top:50%;transform:translateY(-50%)}
body.tm dialog.tm-zoom .nx{right:22px;top:50%;transform:translateY(-50%)}
body.tm .tm-zoom-n{position:absolute;left:0;right:0;bottom:14px;margin:0;text-align:center;font:400 13px/1 var(--ui);color:rgba(255,255,255,.7)}

@media (max-width:820px){
  body.tm.tl-2 .team-bios .card{display:block}
  body.tm.tl-2 .team-bios .card>.card-photo{height:260px;min-height:0;margin-bottom:18px}
  body.tm .tm-story>.wrap{grid-template-columns:1fr}
  body.tm .tm-story-img{min-height:0;aspect-ratio:3/2}
  body.tm .tm-gal-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:42vw;gap:8px}
  body.tm .tm-gal-grid .tm-g:is(.f,.p){grid-row:span 1}
  body.tm .tm-gal-grid .tm-g.t2{grid-column:span 2}
  body.tm dialog.tm-zoom img{max-width:100vw;border-radius:0}
  body.tm dialog.tm-zoom :is(.pv,.nx){top:auto;bottom:14px;transform:none}
  .tm-bar{display:none}
}

/* pasek opcji Oli (narzędzie na czas próby; przepis .dv-bar z dive2.css) */
.tm-bar{position:fixed;left:14px;bottom:14px;z-index:99999;max-width:calc(100vw - 110px);padding:8px 10px;border-radius:16px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.18),0 12px 32px rgba(0,0,0,.22);font:400 12px/1 'Mulish',system-ui,sans-serif}
.tm-bar p{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin:0}
.tm-bar p+p{margin-top:3px}
.tm-bar span{flex:0 0 92px;padding-left:4px;color:rgba(11,20,27,.62)}
.tm-bar span.s2{flex:0 0 auto;margin-left:14px;padding-right:4px}
.tm-bar a{padding:7px 10px;border-radius:999px;color:#0b141b;text-decoration:none;white-space:nowrap}
.tm-bar a:hover{background:#eef3f3}
.tm-bar a.on{background:#17806f;color:#fff}
.tm-bar a.old{margin-left:10px;border:1px solid #cfd9dc}
