.maclost-bg {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: red;
    pointer-events: none;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Libre+Baskerville:wght@400&display=swap");

:root {
  --ink: #12202b;
  --muted: #6e7780;
  --line: rgba(18, 32, 43, 0.16);
  --paper: #f4f3ef;
  --white: #fbfaf7;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 300;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}
a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  height: 88px;
  padding: 0 6vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  position: absolute;
  z-index: 2;
  width: 100%;
}

.brand {
  justify-self: start;
}

.nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-tools {
  position: absolute;
  right: 6vw;

  display: flex;
  align-items: center;
  gap: 24px;
}
.brand,
.footer-brand {
  font-size: 24px;
  letter-spacing: 0.24em;
  font-weight: 300;
}

.nav a,
.search {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  background: none;
  border: 0;
  cursor: pointer;
}

.search {
  font-size: 28px;
  line-height: 1;
  padding: 0 0 3px 28px;
  border-left: 1px solid var(--line);
}

.hero {
  min-height: 500px;
  padding: 120px 6vw 70px;
  display: flex;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 68%;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}
.hero-main {
  position: relative;
  z-index: 1;
}
.hero h1 {
  margin: 45px 0 25px;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: 0.08em;
  font-weight: 300;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.32em;
  margin: 0;
}
.lead {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}
blockquote {
  margin: 80px 3vw 0 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.domains {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 0 2vw;
  margin-top: -28px;
  position: relative;
  z-index: 3;

  background: linear-gradient(
    to right,
    #173041 0%,
    #7b3325 25%,
    #4e4a62 50%,
    #686b6d 75%,
    #52768a 100%
  );
}
.domain {
  min-height: 220px;
  padding: 24px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.domain:hover {
  transform: translateY(-7px);
}
.domain-name {
  font-family: Inter, sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.arrow {
  font-family: Inter, sans-serif;
  font-size: 27px;
}
.domain-ps,
.domain-creation,
.domain-tools,
.domain-dogs,
.domain-about {
  background: transparent;
}

.projects {
  padding: 55px 4vw 70px;
  background: transparent;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: 14px;
  letter-spacing: 0.28em;
  font-weight: 400;
}
.section-heading a {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}
.project-image {
  aspect-ratio: 1.55 / 1;
  background-size: cover;
  background-position: center;
  filter: saturate(0.75);
}
.image-niewydarzenie {
  background: radial-gradient(
    ellipse at 55% 55%,
    #9baab0,
    #344854 70%,
    #18242c
  );
}
.image-terapia {
  background:
    radial-gradient(circle at 50% 58%, #d8d8d2 0 4%, transparent 5%),
    linear-gradient(#b6bdc0, #727c80);
}
.image-fraktal {
  background: repeating-radial-gradient(
    circle at 50% 50%,
    #222 0 1px,
    #b9b5aa 2px 3px,
    #1c2428 4px 5px
  );
}
.image-ps {
  background:
    radial-gradient(ellipse at 50% 50%, #c8c8c0 0 10%, transparent 11%),
    linear-gradient(130deg, #1d2429, #72746f);
}
.image-wycinanki {
  background: repeating-linear-gradient(
    135deg,
    #aaa79e 0 9px,
    #d8d3c8 10px 18px
  );
}
.project h3 {
  margin: 13px 0 4px;
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 400;
}
.project p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}


/* ================================
   TWORY — STRONA GŁÓWNA
   ================================ */

#twory {
  position: relative;
}

#twory .project {
  min-height: 145px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

#twory .project:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
}

#twory .project h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 400;
}

#twory .project p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.site-footer {
  padding: 30px 4vw;
  display: flex;
  align-items: center;
  gap: 50px;
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
}
.footer-brand {
  color: var(--ink);
  font-size: 18px;
}
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

@media (max-width: 1200px) {
  .hero h1 {
    font-size: clamp(52px, 7.5vw, 100px);
  }

  .hero {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .domains {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1050px) {
  .domains {
    grid-template-columns: repeat(4, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .site-header {
    height: 70px;
  }
  .site-header {
    height: 70px;
    padding: 0 5vw;
  }

  .brand {
    font-size: 20px;
  }

  .nav {
    gap: 16px;
  }

  .nav-main {
    display: none;
  }

  .nav-tools {
    position: static;
    gap: 16px;
  }

  .language-switcher {
    gap: 7px;
  }

  .language-switcher a {
    width: 24px;
    height: 16px;
  }

  .language-flag {
    width: 24px;
    height: 16px;
  }

  .search {
    font-size: 24px;
    padding-left: 16px;
  }
  .hero {
    min-height: 500px;
    padding-top: 110px;
  }
  .hero h1 {
    font-size: 64px;
  }
  blockquote {
    display: none;
  }
  .domains {
    grid-template-columns: repeat(2, 1fr);
  }

  .domain {
    min-height: 190px;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 18px;
  }
  .footer-links {
    margin-left: 0;
    width: 100%;
  }
}

/* ================================
   TWÓR
   ================================ */

.works-page {
  min-height: calc(100vh - 120px);
  padding: 150px 6vw 100px;
  background: var(--paper);
}

.works-intro {
  max-width: 900px;
  margin-bottom: 80px;
}

.works-intro h1 {
  margin: 35px 0 25px;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  font-weight: 300;
}

.works-intro > p:last-child {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* Lista dzieł */

.works-list {
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 70px 1fr 50px;
  align-items: center;
  min-height: 125px;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.25s ease,
    background-color 0.25s ease;
}

.work-item:hover {
  padding-left: 15px;
  padding-right: 15px;
  background: rgba(255, 255, 255, 0.45);
}

.work-number {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.work-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0.18em;
  font-weight: 400;
}

.work-info p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.work-arrow {
  justify-self: end;
  font-size: 25px;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.work-item:hover .work-arrow {
  transform: translateX(7px);
}

/* Telefon */

@media (max-width: 700px) {
  .works-page {
    padding: 120px 6vw 70px;
  }

  .works-intro {
    margin-bottom: 55px;
  }

  .works-intro h1 {
    font-size: 58px;
  }

  .work-item {
    grid-template-columns: 42px 1fr 30px;
    min-height: 105px;
  }

  .work-info h2 {
    font-size: 15px;
    letter-spacing: 0.13em;
  }

  .work-info p {
    font-size: 9px;
    line-height: 1.6;
  }

  .work-arrow {
    font-size: 20px;
  }
}

.works {
  padding: 0 5vw 110px;
  background: var(--white);
}

.work {
  min-height: 155px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  column-gap: 10px;
  transition: padding 0.25s ease;
}

.work:last-child {
  border-bottom: 1px solid var(--line);
}

.work:hover {
  padding-left: 18px;
}

.work-number {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-title {
  font-size: 25px;
  letter-spacing: 0.18em;
  font-weight: 300;
}

.work-description {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.work-arrow {
  font-size: 25px;
  text-align: right;
}

@media (max-width: 700px) {
  .work {
    min-height: 130px;
    grid-template-columns: 45px 1fr 30px;
  }

  .work-title {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .work-description {
    line-height: 1.6;
  }
}

/* ================================
   MENU CMS — FINAL
   ================================ */

.nav {
  grid-column: 2;

  display: flex;
  align-items: center;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-tools {
  position: absolute;
  right: 6vw;

  display: flex;
  align-items: center;
  gap: 24px;
}

.public-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.public-menu .menu-item {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-menu .menu-item > a {
  display: block;
  text-decoration: none;
  color: white
}

.public-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--white);
}

.public-menu .submenu-item {
  display: block;
  margin: 0;
  padding: 5px 15px;
  list-style: none;
}

.public-menu .submenu-item a {
  display: block;
  white-space: nowrap;
  text-decoration: none;
}

.public-menu .menu-item:hover > .submenu {
  display: block;
}

.public-menu .submenu-item {
  position: relative;
}

.public-menu .submenu-item:hover > .submenu {
  display: block;
  top: 0;
  left: auto;
  right: 100%;
}

/* ================================
   LANGUAGE SWITCHER
   ================================ */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 18px;

  text-decoration: none;
}

.language-flag {
  display: block;

  width: 28px;
  height: 18px;

  border-radius: 2px;

  transition: transform 0.15s ease;
}

.language-switcher a:hover .language-flag {
  transform: scale(1.12);
}

/* tooltip */

.language-switcher a::after {
  content: attr(data-language);

  position: absolute;
  top: calc(100% + 8px);
  left: 50%;

  transform: translateX(-50%);

  padding: 5px 8px;

  background: #111;
  color: #fff;

  font-size: 12px;
  line-height: 1;

  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.15s ease;

  z-index: 1000;
}

.language-switcher a:hover::after {
  opacity: 1;
}


.maclost-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 20% 30%,
            rgba(100, 190, 175, 0.13),
            transparent 38%
        ),

        radial-gradient(
            ellipse at 80% 65%,
            rgba(120, 90, 180, 0.12),
            transparent 42%
        ),

        repeating-linear-gradient(
            118deg,
            transparent 0 11px,
            rgba(190, 195, 200, 0.11) 11px 13px,
            transparent 13px 23px
        ),

        repeating-linear-gradient(
            28deg,
            transparent 0 18px,
            rgba(120, 180, 170, 0.07) 18px 20px,
            transparent 20px 34px
        ),

        repeating-linear-gradient(
            118deg,
            transparent 0 75px,
           rgba(190, 100, 130, 0.11),
rgba(190, 150, 80, 0.10),
rgba(90, 170, 155, 0.10),
rgba(110, 100, 180, 0.10),
            transparent 128px 205px
        ),

        linear-gradient(
            135deg,
            #0d1013,
            #17181d 48%,
            #101417
        );

    animation: maclostDrift 90s ease-in-out infinite alternate;
}

.maclost-bg::before,
.maclost-bg::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(180, 220, 210, 0.13) 0,
            rgba(150, 180, 190, 0.05) 18%,
            transparent 60%
        );

    filter: blur(12px);
    opacity: 0.7;
}

.maclost-bg::before {
    content: "";
    position: absolute;

    left: 20%;
    top: 30%;

    width: 130px;
    height: 130px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(180, 255, 235, 0.35),
            rgba(100, 180, 220, 0.18) 35%,
            rgba(120, 70, 180, 0.12) 60%,
            transparent 75%
        );

    filter: blur(2px);

    animation:
        atomOne 18s linear infinite,
        atomColorOne 9s ease-in-out infinite alternate;
}

.maclost-bg::after {
    content: "";
    position: absolute;

    left: 65%;
    top: 55%;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 210, 170, 0.30),
            rgba(190, 120, 220, 0.16) 40%,
            rgba(80, 180, 190, 0.10) 65%,
            transparent 75%
        );

    filter: blur(2px);

    animation:
        atomTwo 24s linear infinite,
        atomColorTwo 12s ease-in-out infinite alternate;
}
/*
.maclost-bg::before {
    left: 18%;
    top: 32%;
    animation: atomOne 24s linear infinite;
}
*/
/*
.maclost-bg::after {
    left: 68%;
    top: 58%;
    animation: atomTwo 31s linear infinite;
}
*/

@keyframes maclostDrift {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.08) translate(-1%, 1%);
    }
}

@keyframes atomOne {
    from {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes atomTwo {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-100px, 80px);
    }

    50% {
        transform: translate(-180px, -30px);
    }

    75% {
        transform: translate(-50px, -100px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes atomColorOne {
    from {
        filter: blur(2px) hue-rotate(0deg);
    }

    to {
        filter: blur(2px) hue-rotate(80deg);
    }
}

@keyframes atomColorTwo {
    from {
        filter: blur(2px) hue-rotate(120deg);
    }

    to {
        filter: blur(2px) hue-rotate(260deg);
    }
}

.works-page .public-menu .menu-item > a {
    color: var(--ink);
}

/* Kolor nagłówka i linku w sekcji TWORY */
#twory .section-heading h2,
#twory .section-heading a {
  color: var(--white);
}

#twory .section-heading a {
  transition: opacity 0.2s ease;
}

#twory .section-heading a:hover {
  opacity: 0.65;
}
