  :root {
    --bg: #ffffff;
    --ink: #1b1b1a;
    --ink-dim: #6a6a67;
    --ink-faint: #a3a3a0;
    --line: #e7e7e4;
    --accent: #4a6272;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    --gutter: clamp(24px, 6vw, 96px);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  img { display: block; max-width: 100%; }

  /* balanced wrapping — avoids widows/orphans in prose & headings */
  p, h1, h2, h3, h4, .sec-title, .onwork-lead, .about-statement,
  .work-cap .t, .featured-cap, .exh-venue, .exh-desc, .cookie-text {
    text-wrap: pretty;
  }

  /* ───────── HEADER / MASTHEAD ───────── */
  header.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 28px var(--gutter) 22px;
    text-align: center;
    transition: padding 0.4s ease;
  }

  header.masthead.compact {
    padding: 16px var(--gutter) 14px;
  }

  .wordmark {
    display: inline-block;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(19px, 2.6vw, 30px);
    letter-spacing: -0.01em;
    color: #404148;
    text-decoration: none;
    line-height: 1;
    transition: font-size 0.4s ease;
  }

  header.masthead.compact .wordmark {
    font-size: clamp(16px, 1.9vw, 22px);
  }

  .masthead-nav {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 2.6vw, 40px);
    flex-wrap: wrap;
    transition: margin 0.4s ease;
  }

  header.masthead.compact .masthead-nav { margin-top: 12px; }

  .nav-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: var(--gutter);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px 8px;
    z-index: 60;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .masthead-nav a {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 0.35s ease;
    position: relative;
    padding-bottom: 2px;
  }

  .masthead-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: var(--ink);
    transition: width 0.4s ease;
  }

  .masthead-nav a:hover { color: var(--ink); }
  .masthead-nav a:hover::after { width: 100%; }

  .nav-sep {
    width: 1px;
    height: 11px;
    background: var(--line);
  }

  .utility {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .lang-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .lang-toggle button {
    background: none;
    border: none;
    color: var(--ink-faint);
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.12em;
    cursor: pointer;
    padding: 0;
    transition: color 0.35s ease;
  }
  .lang-toggle button.active { color: var(--ink); }
  .lang-toggle button:hover { color: var(--ink); }
  .lang-div { color: var(--ink-faint); }

  .ig-link {
    color: var(--ink-faint);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 0.35s ease;
  }
  .ig-link:hover { color: var(--ink); }

  /* ───────── SECTIONS ───────── */
  main { display: block; }

  section {
    padding: clamp(72px, 11vw, 150px) var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  section:last-child { border-bottom: none; }

  .sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(36px, 5vw, 64px);
    flex-wrap: wrap;
  }

  .sec-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(19px, 2.1vw, 27px);
    letter-spacing: -0.01em;
    color: #404148;
  }

  .sec-note {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  /* ───────── INTRO / FEATURED ───────── */
  .intro {
    padding-top: clamp(48px, 7vw, 96px);
  }

  .featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    cursor: zoom-in;
  }

  .featured img {
    width: var(--feat-w, 100%);
    max-width: 100%;
    height: auto;
  }

  .featured-cap {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    flex-wrap: wrap;
    text-align: center;
  }
  .featured-cap em {
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--ink-dim);
  }
  .sold-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 9px;
    border-radius: 999px;
  }
  .work-cap .sold-tag { margin-left: 8px; vertical-align: middle; }
  .work-cap { align-items: flex-start; }

  /* ───────── PORTFOLIO GRID (masonry columns) ───────── */
  .series + .series { margin-top: clamp(64px, 9vw, 120px); }

  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: clamp(28px, 4vw, 52px);
    align-items: end;
  }

  .work {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: zoom-in;
  }

  .work-img {
    overflow: hidden;
    background: #f4f4f2;
  }

  .work-img img {
    width: 100%;
    height: auto;
    transition: opacity 0.6s ease, transform 1.6s ease;
  }
  .work:hover .work-img img { transform: scale(1.02); }

  .work-cap {
    margin-top: 12px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .work-cap .t {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--ink);
    line-height: 1.2;
  }
  .work-cap .m {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
  }

  /* ───────── ABOUT ───────── */
  .about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }

  .about-statement {
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--accent);
    margin-bottom: 44px;
    max-width: 22em;
  }

  .about-text {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink-dim);
    max-width: 42em;
    text-align: justify;
    hyphens: auto;
  }
  .about-text p { margin-bottom: 1.3em; }
  .about-text p:last-child { margin-bottom: 0; }
  .about-text em { font-style: italic; color: var(--ink); }

  /* ───────── ON THE WORK ───────── */
  .onwork-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .onwork-lead {
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--accent);
    max-width: 18em;
  }
  .onwork-body {
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-dim);
    max-width: 40em;
    text-align: justify;
    hyphens: auto;
  }
  .onwork-body p { margin-bottom: 1.35em; }
  .onwork-body p:last-child { margin-bottom: 0; }

  .about-portrait {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #ededeb;
    position: relative;
    overflow: hidden;
  }
  .about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 28% center; }
  .about-portrait .ph {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end;
    padding: 18px;
    background:
      repeating-linear-gradient(135deg, #e9e9e6 0px, #e9e9e6 11px, #e3e3e0 11px, #e3e3e0 22px);
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--sans);
  }

  /* ───────── EXHIBITIONS ───────── */
  .exh-list { max-width: 1000px; }
  .exh-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: clamp(24px, 4vw, 56px);
    padding: 26px 0;
    border-top: 1px solid var(--line);
    align-items: baseline;
  }
  .exh-row:last-child { border-bottom: 1px solid var(--line); }
  .exh-year {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink-dim);
  }
  .exh-body {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr;
    gap: clamp(16px, 3vw, 44px);
    align-items: baseline;
  }
  .exh-venue {
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    color: var(--ink);
  }
  .exh-desc { font-size: 13px; color: var(--ink-dim); line-height: 1.6; }

  /* ───────── CONTACT ───────── */
  .contact { text-align: center; }
  .contact-inner { max-width: 640px; margin: 0 auto; }
  .contact-email {
    display: inline-block;
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(14px, 1.7vw, 20px);
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
    transition: border-color 0.4s ease, color 0.4s ease;
  }
  .contact-email:hover { border-color: var(--accent); color: #3c5260; }
  .contact-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .contact-links a { color: var(--ink-dim); text-decoration: none; transition: color 0.35s ease; }
  .contact-links a:hover { color: var(--ink); }

  /* ───────── FOOTER ───────── */
  footer {
    padding: 40px var(--gutter);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  /* ───────── LIGHTBOX ───────── */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(248,248,246,0.97);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .lightbox.open { display: flex; opacity: 1; }
  .lightbox figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 100%;
    max-height: 100%;
  }
  .lightbox img {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.4);
  }
  .lightbox figcaption {
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .lightbox figcaption em {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--ink-dim);
  }
  .lb-close {
    position: fixed;
    top: 24px; right: 28px;
    background: none; border: none;
    font-size: 26px; line-height: 1;
    color: var(--ink-dim);
    cursor: pointer;
    font-family: var(--sans);
  }

  /* ───────── LANGUAGE ───────── */
  [data-lang-en] { display: none; }
  html[lang="en"] [data-lang-pl] { display: none; }
  html[lang="en"] [data-lang-en] { display: inline; }

  /* ───────── REVEAL ───────── */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out; }
  .reveal.in { opacity: 1; transform: none; }

  /* ───────── RESPONSIVE ───────── */
  /* Laptops / small desktops */
  @media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* Tablets */
  @media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .onwork-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-portrait { order: -1; max-width: 340px; margin: 0 auto; }
    .exh-body { grid-template-columns: 1fr; gap: 6px; }
  }

  /* Phones — hamburger navigation */
  @media (max-width: 700px) {
    header.masthead {
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      padding: 15px var(--gutter);
      position: sticky;
    }
    header.masthead.compact { padding: 12px var(--gutter); }
    .wordmark { font-size: 20px; }
    header.masthead.compact .wordmark { font-size: 18px; }

    .nav-toggle { display: block; position: static; transform: none; margin: -6px -8px -6px 0; }

    .masthead-nav {
      position: absolute;
      top: 100%;
      left: 0; right: 0;
      margin: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 4px var(--gutter) 20px;
      background: rgba(255,255,255,0.98);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 18px 30px -24px rgba(0,0,0,0.25);
      display: none;
    }
    .masthead-nav.open { display: flex; }

    .masthead-nav a {
      font-size: 15px;
      letter-spacing: 0.14em;
      padding: 15px 0;
      min-height: 48px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid var(--line);
    }
    .masthead-nav a::after { display: none; }
    .nav-sep { display: none; }
    .utility {
      justify-content: space-between;
      width: 100%;
      padding-top: 18px;
    }
    .lang-toggle button { padding: 8px 6px; font-size: 13px; }
    .ig-link { font-size: 12px; padding: 8px 0; }
  }

  /* Phones — single-column gallery + larger body text */
  @media (max-width: 600px) {
    :root { --gutter: 30px; }
    .grid { grid-template-columns: 1fr; row-gap: 44px; }
    section { padding: 60px var(--gutter); }

    .featured-cap { font-size: 11px; }
    .featured-cap em { font-size: 15px; }
    .sec-head { gap: 6px; margin-bottom: 30px; }

    /* captions centered under each painting on mobile */
    .work-cap {
      align-items: center;
      text-align: center;
      margin-top: 14px;
    }
    .work-cap .t { font-size: 17px; }
    .work-cap .m { font-size: 12px; }

    /* paragraph text ≥ 16px for comfortable mobile reading */
    .about-text, .about-text p { font-size: 16px; line-height: 1.8; }
    .onwork-body, .onwork-body p { font-size: 16px; line-height: 1.85; }
    .onwork-lead { max-width: none; font-size: 18px; }
    .onwork-lead, .onwork-lead span { text-align: justify !important; hyphens: auto; }
    .about-statement { max-width: none; font-size: 18px; text-align: justify; hyphens: auto; }
    .exh-desc { font-size: 15px; }
    /* Akty & Mapy titles aligned right on mobile */
    #series-akty .sec-head, #series-mapy .sec-head { justify-content: flex-end; }
    #series-akty .sec-title, #series-mapy .sec-title { text-align: right; }

    .contact { padding: 84px var(--gutter); }
    .about-portrait { max-width: 220px; }
    .contact-email { font-size: 19px; padding-bottom: 8px; }
    .contact-links a { padding: 8px 0; }
    .cookie-text { font-size: 13px; }
  }

  /* Small phones (iPhone SE etc.) */
  @media (max-width: 380px) {
    .wordmark { font-size: 18px; }
    .sec-title { font-size: 18px; }
  }

  /* ───────── COOKIE CONSENT ───────── */
  .cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 300;
    display: none;
    padding: 18px var(--gutter);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .cookie-banner.show { display: block; }
  .cookie-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
    flex-wrap: wrap;
  }
  .cookie-text {
    flex: 1 1 360px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-dim);
    max-width: 64ch;
  }
  .cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .cookie-btn {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 11px 18px;
    border: 1px solid var(--line);
    background: none;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
    white-space: nowrap;
  }
  .cookie-btn:hover { border-color: var(--ink); }
  .cookie-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  .cookie-btn.primary:hover { background: #3c5260; border-color: #3c5260; }
  .cookie-btn.link {
    border-color: transparent;
    padding: 11px 6px;
    color: var(--ink-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line);
  }
  .cookie-btn.link:hover { color: var(--ink); }

  /* settings + policy modal */
  .cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(27,27,26,0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .cookie-modal.show { display: flex; }
  .cookie-card {
    background: var(--bg);
    border: 1px solid var(--line);
    max-width: 560px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: clamp(28px, 4vw, 44px);
    position: relative;
  }
  .cookie-card h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 19px;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 18px;
  }
  .cookie-card .intro {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-dim);
    margin-bottom: 26px;
  }
  .cookie-cat {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 20px;
    align-items: start;
  }
  .cookie-cat:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 26px; }
  .cookie-cat h4 {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin-bottom: 6px;
  }
  .cookie-cat p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-dim);
    max-width: 42ch;
  }
  .cookie-cat .state {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: nowrap;
    padding-top: 2px;
  }
  /* toggle */
  .switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
  .switch input { opacity: 0; width: 0; height: 0; }
  .switch .track {
    position: absolute; inset: 0;
    background: #d7d7d3;
    border-radius: 999px;
    transition: background 0.3s ease;
  }
  .switch .track::before {
    content: ""; position: absolute;
    height: 18px; width: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
  .switch input:checked + .track { background: var(--accent); }
  .switch input:checked + .track::before { transform: translateX(18px); }
  .cookie-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .cookie-policy-body p {
    font-size: 13px;
    line-height: 1.75;
    color: var(--ink-dim);
    margin-bottom: 1.1em;
  }
  .cookie-policy-body p:last-child { margin-bottom: 0; }
  .cookie-close {
    position: absolute;
    top: 16px; right: 18px;
    background: none; border: none;
    font-size: 20px; line-height: 1;
    color: var(--ink-faint);
    cursor: pointer;
  }
  .cookie-close:hover { color: var(--ink); }
  .footer-link {
    color: var(--ink-faint);
    text-decoration: none;
    border: none;
    background: none;
    font: inherit;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.35s ease;
  }
  .footer-link:hover { color: var(--ink); }

  @media (max-width: 600px) {
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1 1 auto; text-align: center; }
  }
