/* Minimal Portfolio — Edwin */

:root {
    --bg: #ffffff;
    --text: #111111;
    --text-muted: #6b6b6b;
    --border: #e6e6e6;
    --placeholder: #f1f0ee;
    --band: #f3f2ee;
    --band-placeholder: #e6e4de;
    --warm: #f4ece0;
    --warm-line: #e6dac6;
    --dark: #0b0b0b;
    --accent: #f2a93b;

    --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;

    --radius: 14px;
    --gutter: clamp(16px, 4vw, 40px);

    /* BLOG — jeden przełącznik dla linku „Blog” w menu i paska „Z bloga” na stronie głównej.
       Ukryj blog:  --blog: none;
       Pokaż blog:  --blog: block; */
    --blog: block;
}

[data-blog-link],
[data-blog-section]:not([hidden]) {
    display: var(--blog);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Typografia */
h1, h2, h3, .label, .pill, .nav, .services-list, cite, .footer-bottom {
    font-family: var(--font-sans);
}

.display {
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.display-sm {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.label {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

/* Pomarańczowy kwadracik — ten sam akcent co w logo */
.dot {
    width: 9px;
    height: 9px;
    background: var(--accent);
    transition: transform 0.3s ease;
}

/* Ta sama animacja co przy logo: kwadracik lekko odsuwa się w prawo */
.label:hover .dot {
    transform: translateX(3px);
}

/* Przyciski "pill" */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.pill:hover {
    background: var(--text);
    color: var(--bg);
}

.pill-solid {
    border-color: transparent;
    background: var(--bg);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    text-transform: none;
}

.pill-solid:hover {
    transform: translateY(-2px);
}

.pill-light:hover {
    background: #fff;
    color: var(--dark);
}

.pill-lg {
    font-size: 1.1rem;
    padding: 14px 28px;
}

/* Placeholder dla brakujących zdjęć */
.is-empty {
    background: var(--placeholder);
}

.is-empty img {
    display: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 20px 0;
}

/* Rozmycie pod paskiem wygasa gradientem zamiast kończyć się ostrą linią */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0 0 -32px 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 300;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

/* Logo: „Edwin Piłat” + pomarańczowy piksel zamiast kropki */
.logo-text strong {
    font-weight: 700;
}

.logo-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 3px;
    background: var(--accent);
    transition: transform 0.3s ease;
}

.logo:hover .logo-dot {
    transform: translateX(3px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:not(.pill):hover {
    color: var(--text-muted);
}

.nav-links .lang-switch {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
}

/* Hero */
.hero {
    padding-top: clamp(60px, 12vh, 140px);
    padding-bottom: 90px;
}

.hero h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.hero-bottom {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.lead {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.35;
    max-width: 640px;
}

.hero-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-meta li {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.hero-portrait {
    flex-shrink: 0;
    width: 160px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

/* Kadr twarzy z profil.jpg (1200×800): kwadrat 310px od x=352, y=55
   (szerokość = 1200/310, wysokość = 800/310, left = -352/310, top = -55/310) */
.hero-portrait img {
    position: absolute;
    width: 387.1%;
    height: 258.06%;
    left: -113.55%;
    top: -17.74%;
    max-width: none;
}

/* Hero — nadtytuł i przyciski */
.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.hero-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.hero-link:hover {
    color: var(--text-muted);
}

/* Czym się zajmuję — ciepły, jasny piasek (nawiązuje do pomarańczowego akcentu) */
.services {
    background: var(--warm);
    padding: 110px 0;
}

.services-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.services .display {
    margin-bottom: 30px;
}

.services-list {
    list-style: none;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--warm-line);
}

.services-list li:first-child {
    padding-top: 0;
}

/* Linie tylko między punktami — bez linii pod ostatnim, tak jak nad pierwszym */
.services-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.services-list h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.services-list p {
    margin-top: 6px;
    font-size: 1.02rem;
    color: var(--text-muted);
}

.services-list span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    margin-top: 2px;
    border: 1px solid var(--text);
    border-radius: 50%;
}

/* Realizacje — liczby i gry */
.work {
    padding-top: 100px;
    padding-bottom: 110px;
}

.metrics {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 36px 0 60px;
}

.metrics li {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.metrics strong {
    display: block;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
    margin-bottom: 8px;
}

/* Przykłady (case studies) — krótkie karty tekstowe, 2 kolumny */
.cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.case {
    padding: 26px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.case h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

/* Pomarańczowy kwadracik przed tytułem — ten sam akcent co w logo */
.case h3::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    background: var(--accent);
}

.case p {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Doświadczenie — ścieżka Game Designer → Team Lead na szarym pasie */
.experience {
    padding: 80px 0 90px;
    background: var(--band);
}

/* Obecna rola (BF) po lewej i szersza; obie karty mają równą wysokość */
.path {
    display: grid;
    grid-template-columns: 1.8fr auto 1fr;
    align-items: stretch;
    gap: 20px;
    margin-top: 30px;
}

.path-arrow {
    align-self: center;
    font-size: 1.4rem;
    color: var(--text-muted);
}

.role {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 22px 24px 6px;
}

.role--current {
    box-shadow: inset 0 3px 0 var(--accent);
}

.role-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.role h3 {
    margin-top: 6px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.role--current {
    padding: 28px 32px 8px;
}

.role--current .tl-logo {
    height: 34px;
    max-width: 160px;
}

.role--current h3 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    letter-spacing: -0.03em;
}

.role--current .tl-lead {
    max-width: 520px;
    font-size: 1.08rem;
    line-height: 1.45;
}

.role-stats {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 18px 0 22px;
}

.role-stats li {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.role-stats strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
}

.role-company {
    margin: 3px 0 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Logotypy firm */
.tl-logo {
    display: block;
    width: auto;
    max-width: 130px;
    height: 28px;
    object-fit: contain;
    object-position: left center;
    align-self: flex-start;
    margin-bottom: 18px;
    pointer-events: none;
}

/* Optimo: kolorowy znak + ciemny napis (oryginalny napis jest biały, na ciemne tło) */
.tl-logo--optimo {
    position: relative;
    aspect-ratio: 268 / 74;
    max-width: none;
}

.tl-logo--optimo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tl-logo--optimo img:first-child {
    filter: brightness(0);
    clip-path: inset(0 0 0 31%);
}

.tl-logo--optimo img:last-child {
    clip-path: inset(0 69% 0 0);
}

/* Rozwijane szczegóły w kartach */
.tl-more {
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.tl-more summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.tl-more summary:hover {
    color: var(--text);
}

.tl-more summary::-webkit-details-marker {
    display: none;
}

.tl-more summary::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.tl-more[open] summary::after {
    transform: rotate(45deg);
}

.tl-more p,
.tl-more ul {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.tl-more .tl-lead {
    font-size: 1rem;
    color: var(--text);
}

.tl-more ul {
    padding-left: 1.1em;
    list-style-type: square;
}

.tl-more p + ul {
    margin-top: 10px;
}

.tl-more li {
    margin-bottom: 6px;
}

.tl-more li::marker {
    color: var(--accent);
}

.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 12px 0 14px;
}

.tl-tags span {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
}

/* „Wcześniej” — zwinięta lista starszych pozycji z logotypami */
.earlier {
    margin-top: 28px;
    border-top: 1px solid var(--band-placeholder);
}

.earlier summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.earlier summary:hover {
    color: var(--text);
}

.earlier summary::-webkit-details-marker {
    display: none;
}

.earlier summary span {
    font-weight: 400;
    opacity: 0.7;
}

.earlier summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.15rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.earlier[open] summary::after {
    transform: rotate(45deg);
}

.earlier-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding-bottom: 8px;
}

.earlier-list li {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 18px;
    font-family: var(--font-sans);
}

.earlier-list img {
    width: auto;
    height: 24px;
    max-width: 110px;
    object-fit: contain;
    object-position: left center;
    align-self: flex-start;
    margin-bottom: 14px;
}

/* AIESEC: plik ma szerokie białe marginesy — powiększenie i przesunięcie do samego znaku */
.earlier-list .earlier-logo--aiesec {
    height: 42px;
    max-width: none;
    margin: -12px 0 10px -14px;
}

/* Logo kwadratowe (Dni Kariery) — wyższe, białe tło zlewa się z kartą */
.earlier-list .earlier-logo--square {
    height: 40px;
    margin: -8px 0 6px;
    mix-blend-mode: multiply;
}

.earlier-list strong {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
}

.earlier-list span {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* O mnie */
.about {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 120px;
}

.about-img {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Kadr z o_mnie.jpg (1200×800): pionowy wycinek 600px od x=225 — postać na środku,
   z miejscem w stronę, w którą patrzy */
.about-img img {
    object-position: 37.5% center;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p + p {
    margin-top: 16px;
}

.about-text p {
    font-size: 1.25rem;
    max-width: 560px;
}

.about-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin-top: 32px;
    font-size: 1rem;
}

.about-facts strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Certyfikaty — kompaktowy pas: cztery certyfikaty obok siebie */
/* Szary pas na całą szerokość ekranu, mimo że sekcja jest w .container */
.certs {
    padding-top: 70px;
    padding-bottom: 80px;
    background: var(--band);
    box-shadow: 0 0 0 100vmax var(--band);
    clip-path: inset(0 -100vmax);
}

.certs-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* Każdy certyfikat wyśrodkowany: logo, nazwa, organizacja, data */
.certs-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 24px;
    border-top: 1px solid var(--band-placeholder);
    text-align: center;
}

/* Logo organizacji wydającej certyfikat */
.cert-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 12px;
}

.certs-list h3 {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.cert-org {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.cert-date {
    margin-top: 4px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* Z bloga — niski pasek z 3 najnowszymi wpisami (wypełniany przez script.js) */
.latest {
    padding-top: 70px;
    padding-bottom: 10px;
}

.latest-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.latest-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.latest-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-decoration: none;
}

.latest-meta {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.latest-meta span + span::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 12px;
    background: var(--accent);
    vertical-align: middle;
}

.latest-title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.latest-arrow {
    align-self: end;
    transition: transform 0.3s ease;
}

.latest-item:hover .latest-title {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.latest-item:hover .latest-arrow {
    transform: translateX(4px);
}

/* Kontakt */
.contact {
    padding: 120px 0 40px;
}

.contact-big {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: 1000px;
    margin-bottom: 50px;
}

.contact-big span {
    display: inline-block;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

.contact-big span.lit {
    opacity: 1;
}

/* Kontakt: adres e-mail w ramce z przyciskiem „Kopiuj” + LinkedIn */
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Ramka z adresem i przycisk LinkedIn mają tę samą wysokość */
.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    height: 56px;
    padding: 6px 6px 6px 24px;
    border: 1.5px solid var(--text);
    border-radius: 999px;
}

.contact-email a {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

.contact-email a:hover {
    color: var(--text-muted);
}

/* Wspólny styl przycisków „Kopiuj” i „LinkedIn”: czarne, z białym napisem */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.contact-btn:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

/* „Kopiuj” wypełnia wysokość ramki (z równym odstępem od krawędzi) */
.copy-btn {
    align-self: stretch;
    height: auto;
    min-width: 116px;
    padding: 0 20px;
}

.copy-btn.is-copied,
.copy-btn.is-copied:hover {
    background: var(--accent);
    color: var(--text);
}

.footer-bottom {
    margin-top: 120px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    text-decoration: none;
}

.social-links a:hover {
    color: var(--text);
}

/* Blog — lista wpisów */
.nav-links a.is-active {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1.5px;
}

.blog-hero {
    padding-top: clamp(60px, 12vh, 140px);
    padding-bottom: 90px;
}

.blog-hero .lead {
    margin-top: 24px;
}

/* Lista wpisów na szarym pasie na całą szerokość ekranu */
.posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    padding-top: 90px;
    padding-bottom: 120px;
    background: var(--band);
    box-shadow: 0 0 0 100vmax var(--band);
    clip-path: inset(0 -100vmax);
}

.posts .is-empty {
    background: var(--band-placeholder);
}

.post-card a {
    display: block;
    text-decoration: none;
}

.post-img {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 18px;
}

.post-img img {
    transition: transform 0.6s ease;
}

.post-card a:hover .post-img img {
    transform: scale(1.04);
}

.post-meta {
    display: flex;
    gap: 16px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.post-meta span + span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    margin-right: 16px;
    vertical-align: middle;
}

.post-card h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.post-card a:hover h2 {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1.5px;
}

.post-card p {
    color: var(--text-muted);
    max-width: 520px;
}

/* Blog — pojedynczy wpis */
.post {
    max-width: 760px;
    padding-bottom: 120px;
}

.post-back {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.post-back:hover {
    color: var(--text);
}

/* Nagłówek wpisu na szarym pasie; okładka nachodzi na jego dolną krawędź */
.post-header {
    padding-top: 60px;
    padding-bottom: 150px;
    background: var(--band);
    box-shadow: 0 0 0 100vmax var(--band);
    clip-path: inset(0 -100vmax);
}

.post-header h1 {
    margin-bottom: 20px;
}

.post-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    margin: -100px 0 50px;
}

.post-cover.is-empty {
    background: var(--band-placeholder);
}

.post-body {
    font-size: 1.2rem;
    line-height: 1.7;
}

.post-body > * + * {
    margin-top: 1.2em;
}

.post-body h2 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-top: 2em;
}

.post-body ul {
    padding-left: 1.2em;
    list-style-type: square;
}

.post-body li::marker {
    color: var(--accent);
}

.post-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    font-style: italic;
    font-size: 1.35rem;
}

/* Animacje wejścia */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .contact-big span {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsywność */
@media (max-width: 860px) {
    .services-inner,
    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .hero-portrait {
        width: 110px;
    }

    .posts {
        grid-template-columns: 1fr;
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 32px;
    }

    .cases {
        grid-template-columns: 1fr;
    }

    .path {
        grid-template-columns: 1fr;
    }

    .path-arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .earlier-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .nav-links a:not(.pill):not(.lang-switch) {
        display: none;
    }

    .nav-links {
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .certs-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }

    .latest-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
