/* ==========================================================================
   Verexo — styl strony publicznej
   Minimalistyczny, ciemny system: jedna rodzina fontów, jedna siatka, jeden akcent.
   ========================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    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 {
    --bg: #0a0b0d;
    --bg-alt: #0e1013;
    --surface: #131519;
    --surface-2: #191c21;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f2f3f5;
    --muted: #a0a3aa;
    --dim: #6b6f78;
    --accent: #81ecff;
    --accent-ink: #032329;
    --accent-soft: rgba(129, 236, 255, 0.1);
    --danger: #ff8a8a;
    --success: #7ee2a8;

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1760px;
    --gutter: clamp(20px, 4.5vw, 96px);
    --section: clamp(88px, 11vw, 160px);
    --block: clamp(64px, 8vw, 120px);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    color-scheme: dark;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, video, svg, picture { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 200;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--accent-ink); font-weight: 600;
    transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* --- Layout --------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section:not(.section--alt) + .section:not(.section--alt) { padding-top: 0; }

/* --- Typografia ----------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
}
.eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(129, 236, 255, 0.6);
}
.display {
    font-size: clamp(2.5rem, 5.6vw, 7.25rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.title {
    font-size: clamp(2rem, 3.6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.display em, .title em, .cs-heading em, .cta-panel__title em, .cs-hero__title em {
    font-style: normal;
    color: var(--accent);
}
.lead {
    font-size: clamp(1.0625rem, 1.2vw, 1.375rem);
    line-height: 1.65;
    color: var(--muted);
    max-width: 60ch;
    text-wrap: pretty;
}
.muted { color: var(--muted); }

.section-head {
    display: grid;
    gap: 20px;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--split {
    grid-template-columns: 1fr;
    align-items: end;
}
@media (min-width: 900px) {
    .section-head--split { grid-template-columns: 1fr minmax(0, 520px); gap: 64px; }
}

/* --- Przyciski ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9375rem;
    font-weight: 550;
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #a8f3ff; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.03); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); font-weight: 500;
    transition: color .2s;
}
.link-arrow:hover { color: var(--accent); }

/* --- Nagłówek ------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    transition: background-color .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(10, 11, 13, 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-color: var(--line);
}
.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 1.1875rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}
.logo::after {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(5px);
}
.nav { display: none; align-items: center; gap: 4px; }
.nav__link {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9375rem;
    color: var(--muted);
    transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 12px; }

.nav-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    margin-right: -10px;
    background: none; border: 0; cursor: pointer;
    color: var(--text);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.is-open .nav-toggle .icon--menu { display: none; }
.is-open .nav-toggle .icon--close { display: block; }

.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 32px var(--gutter) 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a:not(.btn) {
    padding: 14px 0;
    font-size: 1.75rem;
    font-weight: 550;
    letter-spacing: -0.03em;
    border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: auto; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
    .nav { display: flex; }
    .nav-toggle, .mobile-nav { display: none; }
}

/* --- Hero (strona główna) ------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(56px, 10vw, 120px));
    padding-bottom: var(--section);
}
.hero__grid {
    display: grid;
    gap: clamp(48px, 7vw, 96px);
    align-items: end;
}
.hero__content > * + * { margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero__status {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
    padding-top: 24px !important;
    font-size: 0.875rem; color: var(--dim);
}
.status-dot { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.status-dot::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(126, 226, 168, 0.14);
}
.hero__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 16 / 10;
}
@media (min-width: 1000px) { .hero__media { aspect-ratio: 4 / 5; max-height: min(760px, 78vh); justify-self: end; width: 100%; max-width: 620px; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
    position: absolute;
    left: 16px; right: 16px; bottom: 16px;
    display: flex; align-items: baseline; gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: rgba(10, 11, 13, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
}
.hero__badge strong { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; color: var(--accent); }
.hero__badge span { font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
@media (min-width: 1000px) {
    .hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
}

/* --- O mnie --------------------------------------------------------------- */
.about { display: grid; gap: clamp(40px, 6vw, 80px); }
.about__text { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.45; letter-spacing: -0.02em; color: var(--text); font-weight: 450; }
.about__text p + p { margin-top: 1em; color: var(--muted); }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.principle .icon { width: 22px; height: 22px; color: var(--accent); grid-row: span 2; margin-top: 2px; }
.principle h3 { font-size: 1rem; font-weight: 600; }
.principle p { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 700px) {
    .principles { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1000px) {
    .about { grid-template-columns: 4fr 8fr; }
}

/* --- Umiejętności --------------------------------------------------------- */
.skills { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.skill-group { background: var(--bg-alt); padding: clamp(24px, 3vw, 36px); }
.skill-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.skill-group h3 .icon { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center;
    height: 32px; padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--muted);
}
.chip--accent { color: var(--accent); border-color: rgba(129, 236, 255, 0.25); background: var(--accent-soft); }
@media (min-width: 800px) { .skills { grid-template-columns: repeat(3, 1fr); } }

/* --- Projekty (lista) ----------------------------------------------------- */
.projects { display: grid; gap: clamp(48px, 6vw, 72px) clamp(24px, 3vw, 40px); }
.project-card { display: block; }
.project-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}
.project-card__media img, .project-card__media video {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    transition: transform 1s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.03); }
.project-card__body { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding-top: 24px; }
.project-card__meta { font-size: 0.8125rem; color: var(--dim); grid-column: 1 / -1; }
.project-card__title { font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.project-card__desc { grid-column: 1; color: var(--muted); max-width: 52ch; }
.project-card__arrow {
    grid-column: 2; grid-row: 2 / span 2; align-self: start;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.project-card:hover .project-card__arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.project-card__arrow .icon { transition: transform .3s var(--ease); }
.project-card:hover .project-card__arrow .icon { transform: rotate(-45deg); }
@media (min-width: 800px) {
    .projects { grid-template-columns: 1fr 1fr; }
    .projects > :nth-child(even) { margin-top: clamp(48px, 8vw, 120px); }
}
.empty-state { padding: 64px 24px; text-align: center; color: var(--dim); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* --- Usługi --------------------------------------------------------------- */
.services { border-top: 1px solid var(--line); }
.service {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px 20px;
    padding: clamp(24px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--line);
}
.service__icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--accent);
}
.service__icon .icon { width: 22px; height: 22px; }
.service h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; align-self: center; }
.service p { grid-column: 2; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) {
    .service { grid-template-columns: 48px minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 32px; }
    .service p { grid-column: 3; }
}

/* --- Kontakt -------------------------------------------------------------- */
.contact { display: grid; gap: clamp(48px, 6vw, 96px); }
.contact__info > * + * { margin-top: 24px; }
.contact__list { display: grid; gap: 16px; padding-top: 16px !important; }
.contact__item { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.contact__item a { color: var(--text); font-weight: 500; transition: color .2s; }
.contact__item a:hover { color: var(--accent); }
.contact__item .icon { width: 20px; height: 20px; color: var(--accent); }
.socials { display: flex; gap: 8px; padding-top: 8px; }
.socials a {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong); color: var(--muted);
    transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--text); border-color: rgba(255, 255, 255, .32); }
@media (min-width: 1000px) { .contact { grid-template-columns: 5fr 7fr; } }

.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__hint { font-size: 0.8125rem; color: var(--dim); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: 0.8125rem; line-height: 1.6; color: var(--dim); }
.form__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form__legal a:hover { color: var(--text); }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__status { font-size: 0.9375rem; }
.form__status.is-error { color: var(--danger); }
.form__status.is-success { color: var(--success); }

/* --- Stopka --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--dim); font-size: 0.875rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a:hover { color: var(--text); }

/* ==========================================================================
   Case study
   ========================================================================== */
.cs-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); }
.cs-back {
    display: flex; width: max-content; align-items: center; gap: 8px;
    font-size: 0.875rem; color: var(--muted);
    margin-bottom: clamp(32px, 5vw, 56px);
    transition: color .2s;
}
.cs-back:hover { color: var(--text); }
.cs-back .icon { transition: transform .3s var(--ease); }
.cs-back:hover .icon { transform: translateX(-3px); }
.cs-hero__title {
    margin-top: 20px;
    font-size: clamp(2.5rem, 6vw, 7.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    text-wrap: balance;
    max-width: 18ch;
}
.cs-hero__lead { margin-top: clamp(24px, 3vw, 36px); }

.cs-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.cs-meta dt { font-size: 0.8125rem; color: var(--dim); margin-bottom: 6px; }
.cs-meta dd { font-size: 0.9375rem; color: var(--text); line-height: 1.5; }
.cs-meta dd a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.cs-meta dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-meta .chips { margin-top: 2px; }
.cs-meta .chip { height: 28px; font-size: 0.8125rem; }
@media (min-width: 900px) {
    .cs-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cs-meta__wide { grid-column: span 2; }
}

.cs-cover { margin-top: clamp(48px, 6vw, 80px); }

.cs-body { padding-bottom: var(--section); }
.cs-block { margin-top: var(--block); }
.cs-block + .cs-block.cs-media, .cs-block + .cs-block.cs-gallery { margin-top: clamp(40px, 5vw, 64px); }

/* Siatka redakcyjna: etykieta po lewej (4/12), treść po prawej (8/12) */
.cs-grid { display: grid; gap: 16px; }
.cs-grid--head { margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) {
    .cs-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
    .cs-aside { grid-column: 1 / span 4; }
    .cs-main { grid-column: 5 / span 8; }
    .cs-text .cs-aside, .cs-specs .cs-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.cs-main { max-width: 880px; }
.cs-heading {
    font-size: clamp(1.75rem, 2.8vw, 3.25rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.cs-heading--sm { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.cs-heading + .prose { margin-top: clamp(20px, 2.5vw, 28px); }

.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); }
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 32px; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; color: var(--accent); font-size: .875em; font-variant-numeric: tabular-nums; top: .1em; }

/* Prezentacja obrazów */
.frame { position: relative; }
.frame img, .frame video { width: 100%; }
.frame--plain img, .frame--plain video { border-radius: var(--radius); }
.frame--stage {
    padding: clamp(14px, 4.5vw, 64px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(129, 236, 255, 0.06), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
}
.frame--stage > img, .frame--stage > picture img, .frame--stage > video, .frame--stage .browser {
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.browser { overflow: hidden; border-radius: var(--radius-sm); background: #1c1f24; border: 1px solid var(--line); }
.frame--plain .browser, .frame--browser .browser { border-radius: var(--radius); }
.browser__bar { display: flex; gap: 6px; padding: 12px 14px; background: #1c1f24; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.browser img, .browser video { border-radius: 0 !important; box-shadow: none !important; }
.frame[data-zoom] { cursor: zoom-in; }

.caption { margin-top: 16px; font-size: 0.875rem; color: var(--dim); text-align: center; }

/* Szerokości bloku „Obraz” */
@media (min-width: 900px) {
    .cs-media--container .wrap > .frame,
    .cs-media--container .caption {
        width: calc((100% - 11 * 32px) / 12 * 8 + 7 * 32px);
        margin-left: auto;
    }
    .cs-media--container .caption { text-align: left; }
}
.cs-media--full .wrap { max-width: none; padding-inline: 0; }
.cs-media--full .frame--stage { border-radius: 0; border-inline: 0; }
.cs-media--full .frame--plain img, .cs-media--full .frame--plain video { border-radius: 0; }

/* Obraz + tekst */
.cs-split__grid { display: grid; gap: clamp(28px, 4vw, 40px); align-items: center; }
.cs-split__text > * + * { margin-top: 16px; }
.cs-split__text .cs-heading { margin-top: 16px; }
.cs-split__text .prose { margin-top: 20px; }
@media (min-width: 900px) {
    .cs-split__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
    .cs-split__media { grid-column: span 7; }
    .cs-split__text { grid-column: span 5; padding-inline: clamp(0px, 2vw, 32px); }
    .cs-split--left .cs-split__media { order: 0; }
    .cs-split--right .cs-split__media { order: 2; }
}

/* Galeria */
.gallery { display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: 1fr; align-items: start; }
.gallery--fixed .frame { aspect-ratio: var(--ratio); }
.gallery--fixed .frame--stage { display: flex; }
.gallery--fixed .frame--stage > picture, .gallery--fixed .frame--stage > img, .gallery--fixed .frame--stage > video, .gallery--fixed .frame--stage .browser { flex: 1; min-height: 0; }
.gallery--fixed .frame picture, .gallery--fixed .frame img, .gallery--fixed .frame video { height: 100%; }
.is-cover { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (min-width: 600px) {
    .gallery--2, .gallery--3, .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gallery .frame--stage { padding: clamp(12px, 2.4vw, 32px); }

/* Liczby */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.stat { padding: 28px 0; border-top: 1px solid var(--line); }
.stat__value { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; max-width: 24ch; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(var(--count), minmax(0, 1fr)); gap: 0 32px; } }

/* Funkcje */
.features { display: grid; gap: 0 32px; counter-reset: none; }
.feature { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.feature__num { display: block; font-size: 0.8125rem; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 20px; }
.feature__title { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.feature__text { margin-top: 10px; color: var(--muted); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Specyfikacja */
.specs { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.specs__row { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs__row dt { color: var(--dim); font-size: 0.9375rem; }
.specs__row dd { color: var(--text); }
@media (min-width: 600px) { .specs__row { grid-template-columns: 200px 1fr; } }

/* Cytat */
.cs-quote__mark { font-size: 6rem; line-height: .8; color: var(--accent); font-weight: 600; }
.cs-quote blockquote p { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.3; letter-spacing: -0.03em; font-weight: 500; text-wrap: pretty; }
.cs-quote figcaption { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.9375rem; }
.cs-quote figcaption span { color: var(--dim); }

/* CTA */
.cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 80px);
    border-radius: var(--radius-lg);
    text-align: center;
    background:
        radial-gradient(80% 120% at 50% 120%, rgba(129, 236, 255, 0.14), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
}
.cta-panel__title { font-size: clamp(2rem, 4.6vw, 3.75rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; max-width: 18ch; text-wrap: balance; }
.cta-panel__text { color: var(--muted); max-width: 52ch; font-size: 1.0625rem; }
.cta-panel .btn { margin-top: 12px; }

/* Następny projekt */
.cs-next { border-top: 1px solid var(--line); }
.cs-next a { display: grid; gap: 32px; padding-block: clamp(56px, 8vw, 112px); align-items: center; }
.cs-next__title { margin-top: 16px; font-size: clamp(2rem, 5.4vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; transition: color .3s; }
.cs-next a:hover .cs-next__title { color: var(--accent); }
.cs-next__media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.cs-next__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.cs-next a:hover .cs-next__media img { transform: scale(1.03); }
@media (min-width: 900px) { .cs-next a { grid-template-columns: 7fr 5fr; gap: 64px; } }

/* Podgląd szkicu */
.draft-bar {
    position: fixed; left: 50%; bottom: 20px; z-index: 150; transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px 10px 18px; border-radius: 999px;
    background: #2a2410; color: #ffe08a; border: 1px solid rgba(255, 224, 138, .3);
    font-size: .875rem; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
}
.draft-bar a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 224, 138, .14); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: grid; place-items: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(5, 6, 8, 0.94);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
    cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox__close {
    position: absolute; top: 16px; right: 16px;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.08); border: 0; cursor: pointer; color: var(--text);
}

/* --- Strony prawne / proste ---------------------------------------------- */
.page { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px)); padding-bottom: var(--section); }
.page__head { margin-bottom: clamp(40px, 6vw, 72px); }
.page__head .lead { margin-top: 20px; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 2.4em; margin-bottom: .8em; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal .prose { font-size: 1rem; }
.notice { padding: 16px 20px; border-radius: var(--radius); border: 1px solid rgba(255, 224, 138, .3); background: rgba(255, 224, 138, .06); color: #ffe08a; font-size: .9375rem; margin-bottom: 32px; }

.not-found { min-height: 80vh; display: grid; align-content: center; gap: 24px; justify-items: start; }

/* --- Animacje wejścia ----------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Odstępy pomocnicze */
.eyebrow + .title, .eyebrow + .display, .eyebrow + .cs-heading { margin-top: 20px; }
.about__text + .principles { margin-top: clamp(40px, 5vw, 64px); }
.skills-wrap { margin-top: var(--section); }

/* Galeria „oryginalne proporcje”: równe kafelki, obraz wyśrodkowany i cały widoczny */
.gallery:not(.gallery--fixed) { align-items: stretch; }
.gallery:not(.gallery--fixed) .frame--stage { display: flex; align-items: center; justify-content: center; }
.gallery:not(.gallery--fixed) .frame--stage > picture { width: 100%; }

/* Zrzuty z telefonu: nie rozciągamy ich na całą szerokość ekranu */
.gallery--phone { max-width: 1180px; margin-inline: auto; }
.gallery--phone.gallery--4 { max-width: 1480px; }
