/*
Theme Name: Pracownia Szumu
Author: Antigravity
Description: Custom theme for Pracownia Szumu with Elementor support.
Version: 1.0
*/

@property --works-bg-smooth {
  syntax: '<color>';
  inherits: true;
  initial-value: #149914;
}

@font-face {
  font-family: 'ES Dokument';
  src: url('./assets/fonts/ESDokument-Bk.woff2') format('woff2'),
    url('./assets/fonts/ESDokument-Bk.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ES Dokument';
  src: url('./assets/fonts/ESDokument-CnBd.woff2') format('woff2'),
    url('./assets/fonts/ESDokument-CnBd.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-primary: 'ES Dokument', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg-color: #000000;
  --text-color: #ffffff;
  --works-bg: #149914;
  --works-bg-smooth: var(--works-bg);
  --max-width: 1920px;
  --container-width: 1616px;
  transition: --works-bg-smooth 0.4s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  background-color: var(--bg-color);
  transition: transform 0.3s ease-in-out;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  /* max-width: var(--max-width); */
  margin: 0 auto;
  padding: 24px 32px;
  /* (1680 - 1616) / 2 = 32px na stronę */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  z-index: 1002;
}

.site-logo img,
.site-logo video {
  width: 315px;
  height: auto;
  display: block;
  margin-top: -10px;
}

.site-logo svg {
  width: 135px;
  height: auto;
  display: block;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 820px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .site-logo img.header-mobile-logo {
    width: 135px;
  }
}

/* SEO / Accessibility Helper */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Main Navigation */
.main-nav {
  position: relative;
  /* needed for absolute positioning of dropdown */
  font-style: normal;
  font-weight: 300;
  font-size: 24px;
  line-height: 24px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 2px;
  /* slight visual alignment with logo */
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

/* Dodanie przecinków za Info i Contact */
.nav-item-info,
.nav-item-contact {
  position: relative;
  z-index: 10;
  /* Pozwala na kliknięcie/najechanie nawet gdy tło Works jest rozszerzone */
}

.nav-link {
  display: inline-block;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Zmiana koloru na hover/active dla Info i Contact */
.nav-link.active {
  color: #FB6C25;
}

.nav-link:hover {
  color: var(--works-bg);
}

/* Słowo Works pozostaje białe, gdy aktywuje zielone tło */
.nav-item-works:hover .works-trigger {
  color: var(--text-color);
}

/* Ukrycie Info i Contact gdy jesteśmy na Works, zachowując możliwość najechania (pozostają nad tłem dzięki z-index) */
.nav-list:has(.nav-item-works:hover) .nav-item-info,
.nav-list:has(.nav-item-works:hover) .nav-item-contact {
  opacity: 0;
}

/* =========================================
   WORKS SUBMENU ANIMATION
   ========================================= */

.nav-item-works {
  position: static;
}

.works-trigger {
  position: relative;
  z-index: 10;
  cursor: default;
  /* pozostawia tekst WORKS nad tłem */
}

.works-dropdown {
  position: absolute;
  top: -24px;
  /* offset padding of header to touch top of screen */
  right: -32px;
  /* offset right padding to touch right edge of max-width container */
  background-color: var(--works-bg-smooth);
  padding: 112px 32px 16px 16px;
  min-width: 480px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0s linear 0.2s;
  pointer-events: none;
  z-index: 5;
}

/* Aktywacja zielonego dropdownu */
.nav-item-works:hover .works-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease-in-out, visibility 0s;
}

.works-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.works-list li a {
  font-style: normal;
  font-weight: 700;
  font-size: 29px;
  line-height: 26px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.works-list li a:hover {
  opacity: 0.7;
}

/* =========================================
   ELEMENTOR FIXES
   ========================================= */
.site-main {
  width: 100%;
  margin-top: var(--header-height, 108px);
}

.site-content h1,
.site-content h2,
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title {
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 300;
  font-size: 60px;
  line-height: 109%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  padding: 70px 0;
  margin: 0;
  /* max-width: 1329px; */
}

.site-content p,
.elementor-widget-text-editor p {
  /* max-width: 936px; */
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 127%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0;
  padding: 70px 0;
}

/* =========================================
   HERO SECTION
   ========================================= */
.container {
  /* max-width: var(--max-width); */
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.home-hero-wrapper {
  min-height: calc(100vh - var(--header-height, 108px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-hero-wrapper .project-header {
  width: 100%;
}

.home-hero-wrapper .page-hero {
  flex-grow: 1;
  height: auto;
  max-height: none;
}

.home-hero-wrapper .page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-section {
  width: 100%;
  padding: 0 0 60px 0;
}

.hero-title {
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 300;
  font-size: 60px;
  line-height: 65px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  margin: 0;
  /* max-width: 1329px; */
}

.hero-link {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.footer-link {
  text-decoration: underline;
  text-underline-offset: 1px;
}

.hero-link:hover {
  color: var(--works-bg);
}



/* =========================================
   ABSTRAKCJE
   ========================================= */
.home-abstraction,
.footer-abstraction {
  width: 100%;
}

.abstraction-parallax-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.parallax-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.parallax-container+.parallax-container {
  margin-top: -1px;
}

.parallax-img {
  width: 100%;
  height: auto;
  min-height: 135%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(0);
  will-change: transform;
}

/* =========================================
   TEXT TICKER
   ========================================= */
.home-ticker {
  width: 100%;
  overflow: hidden;
  background: transparent;
  display: flex;
}

.ticker-wrap {
  display: flex;
  width: max-content;
  animation: ticker-scroll 70s linear infinite;
}

.ticker-content {
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  line-height: 100%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  width: 100%;
  background-color: #121212;
  padding: 160px 0 80px 0;
}

.footer-instagram-placeholder {
  margin-bottom: 80px;
}

.ig-top-bar {
  display: flex;
  justify-content: space-between;
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 44px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 40px;
}

/* =========================================
   INSTAGRAM FEED OVERRIDE (CAROUSEL)
   ========================================= */
body {
  overflow-x: hidden;
  /* Zapobiega głównemu poziomemu scrollowi */
}

.ig-feed-container {
  width: auto;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: calc(-50vw + 50%);
}

.ig-feed-container #sb_instagram {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ig-feed-container #sbi_images {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  justify-content: flex-start !important;
}

.ig-feed-container .sbi_item {
  flex: 0 0 calc(100vw / 6) !important;
  width: calc(100vw / 6) !important;
  margin: 0 !important;
  padding: 0 10px !important;
  /* 10px z każdej strony da równe odstępy 20px */
  box-sizing: border-box !important;
}

.ig-feed-container .sbi_item:first-child {
  padding-left: 0 !important;
}

.ig-feed-container .sbi_item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1;
}

/* Ukrycie zbędnych elementów wtyczki (przycisk load more i header) */
.ig-feed-container #sbi_load,
.ig-feed-container #sbi_header {
  display: none !important;
}

.ig-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: opacity 0.3s ease, color 0.3s ease;
  color: #fff;
}

.ig-link:hover {
  color: var(--works-bg);
  opacity: 1;
}

.footer-big-logo {
  width: 100%;
}

.footer-big-logo a {
  display: flex;
  width: 100%;
  line-height: 0;
  font-size: 0;
}

.footer-big-logo img,
.footer-big-logo video {
  width: calc(100% + 4px);
  max-width: none;
  height: auto;
  display: block;
  outline: none;
  border: none;
  transform: translateX(-2px);
  margin-bottom: -1px;
}

.footer-bottom-columns {
  display: flex;
  justify-content: space-between;
  margin-top: 220px;
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 41px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.footer-col p {
  margin: 0;
  text-align: left;
}

.footer-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: opacity 0.3s ease, color 0.3s ease;
  color: #fff;
}

.footer-link:hover {
  color: var(--works-bg);
  opacity: 1;
}

/* =========================================
   FOOTER ABSTRACTION
   ========================================= */
.footer-abstraction {
  width: 100%;
  display: flex;
}

.footer-abstraction img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   PAGE HERO (DLA WSZYSTKICH PODSTRON)
   ========================================= */
.page-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 780px;
  overflow: hidden;
}

.page-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero-shape-orange {
  position: absolute;
  top: 0;
  right: 0;
  width: 7%;
  height: 100%;
  background-color: #FB6C25;
  z-index: 1;
  animation: colorCycleOrange 18s infinite;
}

.page-hero-shape-pink {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22%;
  height: 26%;
  background-color: #B4819A;
  z-index: 2;
  animation: colorCyclePink 35s infinite;
  animation-delay: 0s;
}

@keyframes colorCycleOrange {

  0%,
  15% {
    background-color: #FB6C25;
  }

  33.3%,
  48.3% {
    background-color: #78EC78;
  }

  66.6%,
  81.6% {
    background-color: #149914;
  }

  100% {
    background-color: #FB6C25;
  }
}

@keyframes colorCyclePink {

  0%,
  15% {
    background-color: #B4819A;
  }

  33.3%,
  48.3% {
    background-color: #F7931E;
  }

  66.6%,
  81.6% {
    background-color: #E4BE96;
  }

  100% {
    background-color: #B4819A;
  }
}

.page-content-padded {
  padding-top: 130px;
}

/* =========================================
   INFO PAGE GALLERY (ID 43)
   ========================================= */
.info-gallery-section {
  width: 100%;
  padding-top: 160px;
  padding-bottom: 80px;
}

.info-gallery-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.info-gallery-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
}

.info-gallery-row-2 {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.info-gallery-img-wrapper {
  position: relative;
  overflow: hidden;
}

.info-gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.info-gallery-img-wrapper:hover .info-gallery-img {
  transform: scale(1.04);
}

.info-gallery-img-1 {
  width: 56%;
  height: auto;
}

.info-gallery-shape-green {
  width: 8%;
  background-color: #149914;
  animation: colorCycleGreenTop 20s infinite;
  animation-delay: 0s;
}

.info-gallery-img-3 {
  width: 23.5%;
  height: auto;
  margin-top: 15%;
}

.info-gallery-shape-beige {
  width: 14.5%;
  background-color: #E4BE96;
  padding-bottom: 15%;
  animation: colorCycleBeige 28s infinite;
}

.info-gallery-img-2 {
  width: 54%;
  height: auto;
}

.info-gallery-shape-green-bottom {
  width: 8%;
  background-color: #149914;
  padding-bottom: 15%;
  animation: colorCycleGreenBottom 24s infinite;
  animation-delay: -7.2s;
}

@keyframes colorCycleGreenTop {

  0%,
  15% {
    background-color: #149914;
  }

  33.3%,
  48.3% {
    background-color: #FB6C25;
  }

  66.6%,
  81.6% {
    background-color: #B4819A;
  }

  100% {
    background-color: #149914;
  }
}

@keyframes colorCycleGreenBottom {

  0%,
  15% {
    background-color: #149914;
  }

  33.3%,
  48.3% {
    background-color: #78EC78;
  }

  66.6%,
  81.6% {
    background-color: #F7931E;
  }

  100% {
    background-color: #149914;
  }
}

@keyframes colorCycleBeige {

  0%,
  7.8% {
    background-color: #E4BE96;
  }

  16.7%,
  24.4% {
    background-color: #F7931E;
  }

  33.3%,
  41.1% {
    background-color: #FB6C25;
  }

  50%,
  57.8% {
    background-color: #78EC78;
  }

  66.7%,
  74.4% {
    background-color: #B4819A;
  }

  83.3%,
  91.1% {
    background-color: #149914;
  }

  100% {
    background-color: #E4BE96;
  }
}

div.info-gallery-img.placeholder {
  background-color: #222;
  min-height: 200px;
}

/* =========================================
   INFO PAGE ACTIVITIES
   ========================================= */
.info-activities-section {
  padding-top: 240px;
  padding-bottom: 80px;
}

.info-activities-title {
  font-style: normal;
  font-weight: 300;
  font-size: 90.7349px;
  line-height: 83px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin: 0 0 120px 0;
}

.info-activities-title .highlight {
  background-color: #F7931E;
  color: #FFFFFF;
  display: inline-block;
  padding: 0px 3.4px;
  margin-bottom: 0;
  line-height: 71%;
  font-weight: 300;
  font-size: 105.8px;
  padding-bottom: 11.8px;
  padding-top: 11.8px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.03em;
  animation: colorCycleHighlight 36s infinite;
}

@keyframes colorCycleHighlight {

  0%,
  7.8% {
    background-color: #FB6C25;
  }

  16.7%,
  24.4% {
    background-color: #E4BE96;
  }

  33.3%,
  41.1% {
    background-color: #149914;
  }

  50%,
  57.8% {
    background-color: #F7931E;
  }

  66.7%,
  74.4% {
    background-color: #B4819A;
  }

  83.3%,
  91.1% {
    background-color: #78EC78;
  }

  100% {
    background-color: #FB6C25;
  }
}

.info-activities-title .highlight:first-child {
  padding-top: 0;
}

.info-activities-title .highlight:last-child {
  padding-bottom: 0px;
}

.info-activities-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Wyśrodkowanie opisu względem listy */
  min-height: 400px;
}

.info-activities-list {
  width: 45%;
  display: flex;
  flex-direction: column;
}

.info-activity-item {
  margin: 6px 0;
}

.info-activity-title {
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  line-height: 45px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  filter: blur(0);
  color: #FFFFFF;
  transition: filter 0.4s ease, color 0.4s ease, transform 0.4s ease;
  cursor: pointer;
  margin: 0;
  display: inline-block;
  /* Usuwamy zaznaczanie tekstu podczas klikania/najeżdżania */
  user-select: none;
}

.info-activities-list:has(.info-activity-title.active) .info-activity-title:not(.active) {
  filter: blur(3px);
  color: #FFFFFF;
}

.info-activity-title:hover,
.info-activity-title.active {
  filter: blur(0);
  color: #FFFFFF;
  transform: translateX(10px);
}

.info-activities-descriptions {
  width: 45%;
  position: relative;
  display: grid;
  /* Grid ułatwia nałożenie wszystkich elementów opisu w jednym miejscu */
}

.mobile-accordion-desc-wrapper {
  display: none;
}

.info-activity-desc {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 41px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.info-activity-desc.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.info-activity-desc p {
  margin: 0;
  padding: 0;
}

/* =========================================
   INFO PAGE TEAM SECTION
   ========================================= */
.info-team-section {
  padding-top: 160px;
  padding-bottom: 80px;
}

.info-team-section-title {
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 138%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 40px;
}

.info-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 60px;
  /* Zwiększony odstęp w pionie */
}

.info-team-member {
  display: flex;
  flex-direction: column;
}

.info-team-member-img {
  width: 100%;
  aspect-ratio: 392 / 490;
  /* Format pionowego prostokąta, ok. 4:5 */
  background-color: #111;
  /* Ciemne tło dla braku zdjęcia */
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}

.info-team-member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  will-change: transform, filter;
}

.info-team-member:hover .info-team-member-img img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.info-team-placeholder {
  width: 100%;
  height: 100%;
  background-color: #111;
}

.info-team-member-name {
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 100%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.info-team-member-role {
  font-style: normal;
  font-weight: 450;
  font-size: 18px;
  line-height: 94%;
  leading-trim: both;
  text-edge: cap;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* =========================================
   INFO PAGE BOTTOM TEXT
   ========================================= */
.info-bottom-text-section {
  padding-top: 160px;
  padding-bottom: 160px;
}

.info-bottom-text {
  max-width: 79.1vw;
}

.info-bottom-text p {
  font-style: normal;
  font-weight: 300;
  font-size: 60px;
  line-height: 109%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0;
}

.info-bottom-text p + p {
  margin-top: 40px;
}

@media (max-width: 991px) {
  .info-bottom-text-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .info-bottom-text p {
    font-size: 36px;
  }

  .info-bottom-text p + p {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .info-bottom-text-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .info-bottom-text p {
    font-size: 28px;
  }

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

/* =========================================
   SINGLE PROJEKTY
   ========================================= */

.project-single-main {
  padding-top: 0;
  padding-bottom: 50px;
}

.project-header {
  margin-bottom: 40px;
}

.project-title {
  font-style: normal;
  font-weight: 700;
  font-size: 128px;
  line-height: 94%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
}

.project-info-box {
  background-color: #149914;
  padding: 40px 0;
}

.project-info-inner {
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: 100px;
  align-items: start;
}

.project-excerpt {
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 119%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0;
}

.project-excerpt p {
  margin: 0;
}

.project-fields-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.project-field-item {
  display: flex;
  gap: 30px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-field-label {
  width: 30%;
  flex-shrink: 0;
  font-style: normal;
  font-weight: 300;
  font-size: 20px;
  line-height: 138%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.project-field-value {
  flex-grow: 1;
  font-style: normal;
  font-weight: 300;
  font-size: 20px;
  line-height: 138%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.project-line-divider {
  width: 100%;
  font-size: 0;
  line-height: 0;
}

.project-svg-line {
  width: 100%;
  height: auto;
  display: block;
}

.project-main-image {
  margin-bottom: 50px;
}

.project-main-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-content {
  padding-top: 80px;
}

/* RWD */
@media (max-width: 1199px) {
  .project-title {
    font-size: 96px;
    line-height: 100px;
  }

  .project-excerpt {
    font-size: 28px;
    line-height: 34px;
  }
}

@media (max-width: 991px) {
  .project-title {
    font-size: 72px;
    line-height: 80px;
  }

  .project-info-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-excerpt {
    font-size: 24px;
    line-height: 32px;
  }

  .project-field-label,
  .project-field-value {
    font-size: 18px;
    line-height: 24px;
  }
}

@media (max-width: 767px) {
  .project-single-main {
    padding-top: 0;
  }

  .project-header {
    margin-top: 120px;
    margin-bottom: 40px;
  }

  .project-title {
    font-size: 48px;
    line-height: 54px;
  }

  .project-info-box {
    padding: 40px 0;
  }

  .project-field-item {
    gap: 3opx;
    padding: 15px 0;
  }

  .project-field-label {
    width: 40%;
  }
}

/* ==========================================================================
   Home Featured Projects (Works)
   ========================================================================== */
.home-featured-projects {
  padding: 420px 0 240px 0;
  position: relative;
}

.hfp-container {
  display: block;
  position: relative;
}

.hfp-left {
  width: 100%;
  position: relative;
}

.hfp-subtitle,
.all-projects-header {
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 100%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 30px;
  position: relative;
  z-index: 30;
}

.all-projects-header {
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 100%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 42px;
  position: relative;
  z-index: 30;
}

.hfp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.hfp-item {
  transition: opacity 0.3s ease;
  will-change: opacity;
  position: relative;
  z-index: 10;
  margin-left: -6px;
}

@media (hover: hover) and (pointer: fine) {
  .hfp-item:hover {
    z-index: 30;
  }
}

.hfp-item a {
  font-style: normal;
  font-weight: 700;
  font-size: 120px;
  line-height: 113px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-decoration: none;
  display: block;
  white-space: normal;
  word-break: break-word;
  transition: color 0.3s ease;
  position: relative;
  z-index: 10;
  /* Tekst najechanego elementu ma być nad jego obrazkami */
  /* Nowoczesny, natywny sposób na obrys zewnętrzny: */
  /* -webkit-text-stroke: 10px #000000; */
  /* paint-order: stroke fill; */
}

/* Przygotowanie pseudoelementów pod gradientowy blur */
.hfp-item a::before,
.hfp-item a::after {
  content: attr(data-text);
  position: absolute;
  /* Powiększamy obszar rysowania, żeby blur nie był brutalnie obcięty przez maskę na krawędzi tekstu */
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  padding: 40px;
  box-sizing: border-box;
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {

  /* Kiedy najedziemy na listę, element nie-hoverowany staje się bazą do bluru */
  .hfp-list:hover .hfp-item:not(:hover) {
    opacity: 0.6;
  }

  .hfp-list:hover .hfp-item:not(:hover) a {
    color: transparent;
    /* Ukrywamy ostry tekst bazowy */
  }

  .hfp-list:hover .hfp-item:not(:hover) a::before,
  .hfp-list:hover .hfp-item:not(:hover) a::after {
    opacity: 1;
    /* Pokazujemy dwie zblurowane warstwy */
  }

  /* ODD (nieparzyste) -> L: 5px, P: 15px */
  .hfp-list:hover .hfp-item:nth-child(odd):not(:hover) a::before {
    filter: blur(5px);
    -webkit-mask-image: linear-gradient(to right, black 30%, transparent 70%);
    mask-image: linear-gradient(to right, black 30%, transparent 70%);
  }

  .hfp-list:hover .hfp-item:nth-child(odd):not(:hover) a::after {
    filter: blur(15px);
    -webkit-mask-image: linear-gradient(to right, transparent 30%, black 70%);
    mask-image: linear-gradient(to right, transparent 30%, black 70%);
  }

  /* EVEN (parzyste) -> L: 15px, P: 5px */
  .hfp-list:hover .hfp-item:nth-child(even):not(:hover) a::before {
    filter: blur(15px);
    -webkit-mask-image: linear-gradient(to right, black 30%, transparent 70%);
    mask-image: linear-gradient(to right, black 30%, transparent 70%);
  }

  .hfp-list:hover .hfp-item:nth-child(even):not(:hover) a::after {
    filter: blur(5px);
    -webkit-mask-image: linear-gradient(to right, transparent 30%, black 70%);
    mask-image: linear-gradient(to right, transparent 30%, black 70%);
  }
}

.hfp-images {
  position: absolute;
  top: -382px;
  right: 0;
  width: 45%;
  z-index: 5;
  /* Obrazki muszą być pod tytułem projektu */
  pointer-events: none;
}

.hfp-img {
  position: absolute;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  transition-delay: 0s;
  /* Szybkie znikanie na mouseleave */
}

@media (hover: hover) and (pointer: fine) {
  .hfp-item:hover .hfp-img.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s;
    transition-delay: var(--delay, 0s);
  }
}

/* Pozycjonowanie trzech dodatkowych zdjęć jak na wizualizacji */
.hfp-img-1 {
  width: 550px;
  height: auto;
  top: -100px;
  z-index: 1;
}

.hfp-img-2 {
  width: 340px;
  height: auto;
  top: 205px;
  right: -50px;
  z-index: 3;
}

.hfp-img-3 {
  width: 350px;
  height: auto;
  top: 525px;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .hfp-item a {
    font-size: 80px;
    line-height: 80px;
  }

  .hfp-item {
    margin-left: -5px;
  }
}

@media (max-width: 991px) {
  .hfp-container {
    flex-direction: column;
  }

  .hfp-left,
  .hfp-right {
    width: 100%;
  }

  .hfp-right {
    min-height: 500px;
    margin-top: 50px;
  }

  .hfp-item a {
    font-size: 60px;
    line-height: 60px;
    white-space: normal;
  }

  .hfp-item {
    margin-left: -4px;
  }
}

/* ==========================================================================
   All Projects Section
   ========================================================================== */
.all-projects-section {
  padding: 112px 32px;
  background-color: #000000;
  /* POWRÓT DO CZARNEGO: opóźniamy o 1s, by zniwelować miganie w przerwach między linkami */
  transition: background-color 0.4s ease 1s;
}

.all-projects-container {
  display: block;
  text-align: left;
  line-height: 48px;
  /* max-width: var(--max-width); */
  margin: 0 auto;
}

.all-project-link {
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  line-height: 36px;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: inline;
  transition: color 0.4s ease;
  cursor: default;
}

.project-spacer {
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-5px);
  width: 24px;
  height: 24px;
  margin: 0 16px;
  transition: filter 0.4s ease;
}

/* Kiedy najedziemy na jakikolwiek link, zdejmujemy opóźnienie zmiany koloru tła - ma wejść natychmiast */
.all-projects-section:has(.all-project-link:hover) {
  transition-delay: 0s;
}

/* Efekty hover: zmiana tła całej sekcji w zależności od n-tego linku */
.all-projects-section:has(.all-project-link:nth-of-type(6n+1):hover) {
  background-color: #78EC78;
}

.all-projects-section:has(.all-project-link:nth-of-type(6n+2):hover) {
  background-color: #FB6C25;
}

.all-projects-section:has(.all-project-link:nth-of-type(6n+3):hover) {
  background-color: #F7931E;
}

.all-projects-section:has(.all-project-link:nth-of-type(6n+4):hover) {
  background-color: #E4BE96;
}

.all-projects-section:has(.all-project-link:nth-of-type(6n+5):hover) {
  background-color: #B4819A;
}

.all-projects-section:has(.all-project-link:nth-of-type(6n+6):hover) {
  background-color: #149914;
}

/* Tylko aktywny (hover) link zmienia kolor na czarny */
.all-project-link:hover {
  color: #000000;
}

/* ==========================================================================
   FLUID SCALING BELOW 1580PX
   Automagiczne, proporcjonalne skalowanie wszystkiego dla ekranów mniejszych niż 1580px
   Wszystkie wartości px zostały przeliczone na jednostki 'vw' (1% szerokości ekranu)
   Aby cofnąć, po prostu usuń cały poniższy blok.
   ========================================================================== */
/* VW SCALING GLOBALLY APPLIED */
/* Header & Navigation */
.header-container {
  padding: 1.52vw 2.03vw;
}

.container {
  padding: 0 2.03vw;
}

.site-logo img,
.site-logo video {
  width: 19.94vw;
  margin-top: -0.63vw;
}

.nav-list {
  gap: 1.52vw;
}

.nav-link {
  font-size: 1.43vw;
}

.works-dropdown {
  top: -1.52vw;
  right: -2.03vw;
  padding: 7.09vw 2.03vw 1.01vw 1.01vw;
}

.works-list {
  gap: 0.76vw;
}

.works-list li a {
  font-size: 1.84vw;
  line-height: 1.65vw;
}


/* Sekcja Hero */
.hero-section {
  padding: 0 0 60px 0;
}

.hero-title {
  font-size: 3.57vw;
  line-height: 3.87vw;
  max-width: 79.1vw;
}

/* Ticker Text */
.ticker-content {
  font-size: 2.14vw;
}

/* Wyróżnione Projekty (Ze zdjęciami) */
.home-featured-projects {
  padding: 26.58vw 0 15.19vw 0;
}

.hfp-item a {
  font-size: 7.14vw;
  line-height: 6.73vw;
}

.hfp-images {
  top: -24.17vw;
}

.hfp-img-1 {
  width: 34.81vw;
  top: -6.33vw;
}

.hfp-img-2 {
  width: 21.51vw;
  top: 12.97vw;
  right: -3.16vw;
}

.hfp-img-3 {
  width: 22.15vw;
  top: 33.22vw;
}

/* Wszystkie Projekty (Zmieniające kolory tła) */
.all-projects-section {
  padding: 7.08vw 2.02vw;
}

.all-projects-container {
  line-height: 3.04vw;
}

.all-project-link {
  font-size: 2.14vw;
  line-height: 2.14vw;
}

.project-spacer {
  width: 1.51vw;
  height: 1.51vw;
  margin: 0 1.01vw;
}

/* Subtitle (Robiliśmy szum dla) */
.hfp-subtitle,
.all-projects-header {
  font-size: 1.9vw;
  line-height: 1.9vw;
  margin-bottom: 1.79vw;
}

.all-projects-header {
  margin-bottom: 2.55vw;
}

/* Footer */
.site-footer {
  padding: 10.13vw 0 5.06vw 0;
}

.footer-instagram-placeholder {
  margin-bottom: 5.06vw;
}

.ig-top-bar {
  font-size: 1.9vw;
  line-height: 2.62vw;
  margin-bottom: 2.38vw;
}

.footer-bottom-columns {
  margin-top: 13.1vw;
  font-size: 1.9vw;
  line-height: 2.44vw;
}

/* =========================================
       INFO PAGE SCALING
       ========================================= */
.page-content-padded {
  padding-top: 8.23vw;
}

.site-content h1,
.site-content h2,
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title {
  font-size: 3.57vw;
  line-height: 109%;
  padding: 4.17vw 0;
  max-width: 79.1vw;
}

.site-content p,
.elementor-widget-text-editor p {
  font-size: 1.9vw;
  line-height: 127%;
  padding: 4.17vw 0;
  max-width: 55.71vw;
}

.info-gallery-section {
  padding-top: 10.13vw;
  padding-bottom: 5.06vw;
}

.info-activities-section {
  padding-top: 15.19vw;
  padding-bottom: 5.06vw;
}

.info-activities-title {
  font-size: 5.4vw;
  line-height: 4.94vw;
  margin: 0 0 7.14vw 0;
}

.info-activities-title .highlight {
  padding: 0vw 0.2vw;
  line-height: 71%;
  margin-bottom: 0;
  font-size: 6.3vw;
  padding-bottom: 0.7vw;
  padding-top: 0.7vw;
}

.info-activities-title .highlight:first-child {
  padding-top: 0;
}

.info-activities-title .highlight:last-child {
  padding-bottom: 0px;
}

.info-activities-content {
  min-height: 25.32vw;
}

.info-activity-item {
  margin: 0.38vw 0;
}

.info-activity-title {
  font-size: 3.04vw;
  line-height: 2.85vw;
}

.info-activity-desc {
  transform: translateY(1.27vw);
  font-size: 2.02vw;
  line-height: 2.59vw;
}

.info-team-section {
  padding-top: 10.13vw;
  padding-bottom: 5.06vw;
}

.info-team-section-title {
  font-size: 1.9vw;
  margin-bottom: 2.53vw;
}

.info-team-grid {
  column-gap: 1.27vw;
  row-gap: 3.8vw;
}

.info-team-member-name {
  font-size: 1.9vw;
  line-height: 100%;
  margin: 0 0 0.5vw 0;
}

.info-team-member-role {
  font-size: 1.07vw;
  line-height: 94%;
}

/* =========================================
       INFO BOTTOM TEXT SCALING
       ========================================= */
.info-bottom-text p {
  font-size: 3.57vw;
  line-height: 109%;
}

/* =========================================
       SINGLE PROJECT SCALING
       ========================================= */
.project-single-main {
  padding-top: 0;
  padding-bottom: 3.16vw;
}

.project-title {
  font-size: 7.62vw;
  line-height: 94%;
}

.project-info-box {
  padding: 40px 0;
}

.project-info-inner {
  gap: 6.33vw;
}

.project-excerpt {
  font-size: 1.9vw;
  line-height: 119%;
}

.project-field-item {
  gap: 1.9vw;
  padding: 0.82vw 0;
}

.project-field-label {
  font-size: 1.19vw;
  line-height: 138%;
}

.project-field-value {
  font-size: 1.19vw;
  line-height: 138%;
}

/* End of VW scaling */
/* ==========================================================================
   MAX SCALING CAP (>= 1921px)
   ========================================================================== */
@media (min-width: 1921px) {

  /* Header & Navigation */
  .header-container {
    padding: 29.18px 38.98px;
  }

  .container {
    padding: 0 38.98px;
  }

  .site-logo img,
  .site-logo video {
    width: 382.85px;
    margin-top: -12.10px;
  }

  .nav-list {
    gap: 29.18px;
  }

  .nav-link {
    font-size: 27.46px;
  }

  .works-dropdown {
    top: -29.18px;
    right: -38.98px;
    padding: 136.13px 38.98px 19.39px 19.39px;
  }

  .works-list {
    gap: 14.59px;
  }

  .works-list li a {
    font-size: 35.33px;
    line-height: 31.68px;
  }


  /* Sekcja Hero */
  .hero-section {
    padding: 0 0 60px 0;
  }

  .hero-title {
    font-size: 68.54px;
    line-height: 74.30px;
    /* max-width: 1518.72px; */
  }

  /* Ticker Text */
  .ticker-content {
    font-size: 41.09px;
  }

  /* Wyróżnione Projekty (Ze zdjęciami) */
  .home-featured-projects {
    padding: 510.34px 0 291.65px 0;
  }

  .hfp-item a {
    font-size: 137.09px;
    line-height: 129.22px;
  }

  .hfp-images {
    top: -464.06px;
  }

  .hfp-img-1 {
    width: 668.35px;
    top: -121.54px;
  }

  .hfp-img-2 {
    width: 412.99px;
    top: 249.02px;
    right: -60.67px;
  }

  .hfp-img-3 {
    width: 425.28px;
    top: 637.82px;
  }

  /* Wszystkie Projekty (Zmieniające kolory tła) */
  .all-projects-section {
    padding: 135.94px 38.78px;
  }

  .all-projects-container {
    line-height: 58.37px;
  }

  .all-project-link {
    font-size: 41.09px;
    line-height: 41.09px;
  }

  .project-spacer {
    width: 28.99px;
    height: 28.99px;
    margin: 0 19.39px;
  }

  /* Subtitle (Robiliśmy szum dla) */
  .hfp-subtitle,
  .all-projects-header {
    font-size: 36.48px;
    line-height: 36.48px;
    margin-bottom: 34.37px;
  }

  .all-projects-header {
    margin-bottom: 46.37px;
  }

  /* Footer */
  .site-footer {
    padding: 194.50px 0 97.15px 0;
  }

  .footer-instagram-placeholder {
    margin-bottom: 97.15px;
  }

  .ig-top-bar {
    font-size: 36.48px;
    line-height: 50.30px;
    margin-bottom: 45.70px;
  }

  .footer-bottom-columns {
    margin-top: 251.52px;
    font-size: 36.48px;
    line-height: 46.85px;
  }

  /* =========================================
       INFO PAGE SCALING
       ========================================= */
  .page-content-padded {
    padding-top: 158.02px;
  }

  .site-content h1,
  .site-content h2,
  .elementor-widget-heading h1.elementor-heading-title,
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 68.54px;
    line-height: 109%;
    padding: 80.06px 0;
    /* max-width: 1518.72px; */
  }

  .site-content p,
  .elementor-widget-text-editor p {
    font-size: 36.48px;
    line-height: 127%;
    padding: 80.06px 0;
    /* max-width: 1069.63px; */
  }

  .info-gallery-section {
    padding-top: 194.50px;
    padding-bottom: 97.15px;
  }

  .info-activities-section {
    padding-top: 291.65px;
    padding-bottom: 97.15px;
  }

  .info-activities-title {
    font-size: 103.68px;
    line-height: 94.85px;
    margin: 0 0 137.09px 0;
  }

  .info-activities-title .highlight {
    padding: 0.00px 3.84px;
    line-height: 71%;
    margin-bottom: 0;
    font-size: 120.96px;
    padding-bottom: 13.44px;
    padding-top: 13.44px;
  }

  .info-activities-title .highlight:first-child {
    padding-top: 0;
  }

  .info-activities-title .highlight:last-child {
    padding-bottom: 0px;
  }

  .info-activities-content {
    min-height: 486.14px;
  }

  .info-activity-item {
    margin: 7.30px 0;
  }

  .info-activity-title {
    font-size: 58.37px;
    line-height: 54.72px;
  }

  .info-activity-desc {
    transform: translateY(24.38px);
    font-size: 38.78px;
    line-height: 49.73px;
  }

  .info-team-section {
    padding-top: 194.50px;
    padding-bottom: 97.15px;
  }

  .info-team-section-title {
    font-size: 36.48px;
    margin-bottom: 48.58px;
  }

  .info-team-grid {
    column-gap: 24.38px;
    row-gap: 72.96px;
  }

  .info-team-member-name {
    font-size: 36.48px;
    line-height: 100%;
    margin: 0 0 9.60px 0;
  }

  .info-team-member-role {
    font-size: 20.54px;
    line-height: 94%;
  }

  /* =========================================
       INFO BOTTOM TEXT SCALING
       ========================================= */
  .info-bottom-text p {
    font-size: 68.54px;
    line-height: 109%;
  }

  /* =========================================
       SINGLE PROJECT SCALING
       ========================================= */
  .project-single-main {
    padding-top: 0;
    padding-bottom: 60.67px;
  }

  .project-header {
    margin-top: 160px;
    margin-bottom: 40px;
  }

  .project-title {
    font-size: 146.30px;
    line-height: 94%;
  }

  .project-info-box {
    padding: 40px 0;
  }

  .project-info-inner {
    gap: 121.54px;
  }

  .project-excerpt {
    font-size: 36.48px;
    line-height: 119%;
  }

  .project-field-item {
    gap: 36.48px;
    padding: 15.74px 0;
  }

  .project-field-label {
    font-size: 22.85px;
    line-height: 138%;
  }

  .project-field-value {
    font-size: 22.85px;
    line-height: 138%;
  }

}


/* ==========================================================================
   MOBILE MENU (<= 820px)
   ========================================================================== */

/* Domyślnie ukrywamy hamburger */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  padding-top: 3px;
  padding-right: 0;
  z-index: 2000;
}

.hamburger-line {
  display: block;
  width: 46px;
  height: 0px;
  border: 1px solid #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line:nth-child(1) {
  margin-bottom: 8px;
}

@media (max-width: 1200px) {

  /* Zamrożenie pomniejszania headera na poziomie 1200px */
  .header-container {
    padding: 18.24px 24.36px;
  }

  .container {
    padding: 0 24.36px;
  }

  .all-projects-section {
    padding-left: 24.36px;
    padding-right: 24.36px;
  }

  .site-logo img,
  .site-logo video {
    width: 239.28px;
    margin-top: -7.56px;
  }

  .nav-list {
    gap: 18.24px;
  }

  .nav-link {
    font-size: 17.16px;
  }

  .works-dropdown {
    top: -18.24px;
    right: -24.36px;
    padding: 85.08px 24.36px 12.12px 12.12px;
  }

  .works-list {
    gap: 9.12px;
  }

  .works-list li a {
    font-size: 22.08px;
  }

  .hfp-subtitle,
  .all-projects-header {
    font-size: 24px;
    line-height: 24px;
  }
}



@media (max-width: 820px) {
  .mobile-menu-toggle {
    display: block;
    position: relative;
    margin-top: 5px;
  }

  /* Kiedy menu jest otwarte (fixed aby "pływał" nad ekranem) */
  body.mobile-menu-open .mobile-menu-toggle {
    position: fixed;
    right: 26px;
    top: 21x;
    /* dopasuj do marginesów logo z header-container */
  }

  /* Animacja hamburgera do krzyżyka (X) z 2 linii */
  body.mobile-menu-open .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  body.mobile-menu-open .hamburger-line:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* Blokada scrollowania strony */
  body.mobile-menu-open {
    overflow: hidden;
  }

  /* Ukrycie standardowej nawigacji i zrobienie z niej wysuwanego panelu */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    margin-top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--works-bg, #111111);
    /* dynamiczne tło menu ustawiane z js */
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1), background-color 0.4s ease;
    overflow-y: auto;
    padding: 110px 22px 22px 22px;
    box-sizing: border-box;
  }

  /* Otwieranie panelu */
  body.mobile-menu-open .main-nav {
    right: 0;
  }

  /* Układ elementów w mobile */
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    height: 100%;
  }

  .nav-item-lang {
    margin-bottom: auto;
  }

  .nav-item-info {}

  .nav-item-contact {}

  .nav-item-works {}

  .nav-list .nav-item .nav-link {
    font-style: normal;
    font-weight: normal;
    font-size: 24px;
    line-height: 100%;
    leading-trim: both;
    text-edge: cap;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
  }

  .nav-list .works-list li a {
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 94%;
    leading-trim: both;
    text-edge: cap;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #FFFFFF;
  }

  /* Na mobile zamiast listy projektów (WORKS) pokazujemy link do podstrony Projekty */
  .nav-item-works {
    display: none !important;
  }

  .works-trigger,
  .nav-item-works:hover .works-trigger,
  .nav-item-works:active .works-trigger {
    display: none !important;
  }

  .lang-switch-pill {
    width: 48px;
    height: 28px;
    border-width: 3px;
  }

  .lang-switch-circle {
    width: 14px;
    height: 14px;
  }

  .lang-switcher.lang-pl .lang-switch-circle {
    right: 4px;
  }

  .lang-switcher.lang-en .lang-switch-circle {
    left: 4px;
  }

  /* Wyłączamy ukrywanie INFO i CONTACT po kliknięciu/najechaniu na WORKS w mobile */
  .nav-list:has(.nav-item-works:hover) .nav-item-info,
  .nav-list:has(.nav-item-works:hover) .nav-item-contact,
  .nav-list:has(.nav-item-works:active) .nav-item-info,
  .nav-list:has(.nav-item-works:active) .nav-item-contact {
    opacity: 1;
  }

  /* Resetowanie zachowania rozwijanego menu pod WORKS */
  .works-dropdown {
    position: static;
    /* Już nie lata "absolutnie" */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background-color: transparent;
    padding: 10px 0 0 0;
    min-width: 0;
  }

  /* Lista projektów */
  .works-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .works-list li a {
    font-size: 32px;
    /* Wielkość projektów na liście */
    color: #FFFFFF;
    white-space: normal;
    line-height: 1.1;
  }

  .home-hero-wrapper {
    min-height: calc(100vh - var(--header-height, 108px));
    min-height: calc(100svh - var(--header-height, 108px));
  }
}

@media (max-width: 900px) {
  .all-projects-container {
    line-height: 28px;
  }

  .all-project-link {
    font-size: 20px;
    line-height: 20px;
  }
}

@media (max-width: 820px) {
  .hero-section {
    padding-bottom: 10vw;
  }

  .hfp-subtitle,
  .all-projects-header {
    margin-bottom: 7.55vw;
  }



  .hfp-list {
    gap: 26px;
  }

  .hfp-item a {
    font-style: normal;
    font-weight: 700;
    font-size: 64px;
    line-height: 94%;
    leading-trim: both;
    text-edge: cap;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #FFFFFF;
  }

  .all-projects-section {
    /* animation removed in favor of JS scroll-based color */
  }

  .all-project-link {
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    leading-trim: both;
    text-edge: cap;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.8);
  }

  .project-spacer {
    width: 3.51vw;
    height: 3.51vw;
    margin: 0 1.01vw;
    margin-top: 5px;
  }

  .hero-title {
    font-style: normal;
    font-weight: 300;
    font-size: 32px;
    line-height: 109%;
    leading-trim: both;
    text-edge: cap;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    max-width: 100%;
  }

  .ticker-content {
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    leading-trim: both;
    text-edge: cap;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
  }

  /* Footer reset do px żeby tekst nie był mikroskopijny na mobile */
  .site-footer {
    padding: 80px 0 40px 0;
  }

  .footer-instagram-placeholder {
    margin-bottom: 40px;
  }

  .ig-top-bar {
    font-size: 24px;
    line-height: 127%;
    margin-bottom: 40px;
    display: block;
  }


  .footer-bottom-columns {
    margin-top: 100px;
    font-size: 24px;
    line-height: 150%;
    flex-direction: column;
    gap: 15px;
  }

  /* =========================================
       INFO PAGE SCALING (MOBILE OVERRIDES)
       ========================================= */
  .site-content h1,
  .site-content h2,
  .elementor-widget-heading h1.elementor-heading-title,
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 32px;
    line-height: 109%;
    padding: 30px 0;
  }

  .site-content p,
  .elementor-widget-text-editor p {
    font-size: 24px;
    line-height: 127%;
    padding: 20px 0;
  }

  .info-gallery-section {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .info-activities-section {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  /* =========================================
       NEW MOBILE ACCORDION STYLES
       ========================================= */
  .info-activities-content {
    display: block;
    min-height: auto;
  }

  .info-activities-list {
    width: 100%;
  }

  .info-activities-descriptions {
    display: none !important;
  }

  .mobile-accordion-desc-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
  }

  .mobile-accordion-desc-wrapper.active {
    grid-template-rows: 1fr;
  }

  .mobile-accordion-desc {
    overflow: hidden;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
  }

  .mobile-accordion-desc>* {
    padding-top: 15px;
    padding-bottom: 25px;
    margin: 0;
  }


  .info-activity-title:hover,
  .info-activity-title.active {
    transform: none;
  }

  .info-activities-title {
    font-size: 43px;
    line-height: 40px;
    margin: 0 0 50px 0;
  }

  .info-activities-title .highlight {
    font-size: 50px;
    padding: 0 2px;
  }

  .info-activity-item {
    margin: 5px 0;
  }

  .info-activity-title {
    font-size: 24px;
    line-height: 23px;
  }

  .info-activity-desc {
    font-size: 16px;
    line-height: 21px;
    transform: translateY(10px);
  }

  .info-team-section {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .info-team-section-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .info-team-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
    row-gap: 30px;
  }

  .info-team-member-name {
    font-size: 16px;
    margin: 0 0 4px 0;
  }

  .info-team-member-role {
    font-size: 14px;
  }

  .info-bottom-text p {
    font-size: 28px;
    line-height: 109%;
  }

  /* =========================================
       PROJECT PAGE SCALING (MOBILE OVERRIDES)
       ========================================= */
  .project-single-main {
    padding-bottom: 40px;
  }

  .project-header {
    margin-top: 160px;
    margin-bottom: 40px;
  }

  .project-title {
    font-size: 64px;
    line-height: 94%;
  }

  .project-info-box {
    padding: 40px 0;
  }

  .project-info-inner {
    gap: 30px;
  }

  .project-excerpt {
    font-size: 24px;
    line-height: 127%;
  }

  .project-field-item {
    gap: 30px;
    padding: 8px 0;
  }

  .project-field-label,
  .project-field-value {
    font-size: 20px;
    line-height: 138%;
  }

  .project-line-divider {
    height: 33px;
    overflow: hidden;
    position: relative;
  }

  .project-svg-line {
    position: absolute;
    left: -220px;
    width: calc(100% + 220px);
    height: 33px;
    object-fit: cover;
    object-position: left;
  }

  .info-activities-title {
    max-width: 100vw !important;
  }

  .page-id-43 .site-content {
    padding-top: 50px;
  }

}

@media (max-width: 650px) {
  .ig-feed-container .sbi_item {
    flex: 0 0 calc(100vw / 2) !important;
    width: calc(100vw / 2) !important;
  }
}

@media (max-width: 600px) {
  /* home-abstraction mobile overrides removed */
}

@media (max-width: 500px) {}

/* ==========================================================================
   SMARTPHONES (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {

  .container,
  .header-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.mobile-menu-open .mobile-menu-toggle {
    right: 21px;
  }
}

@media (max-width: 420px) {
  .info-activities-title span.highlight {
    font-size: 45px;
  }
}

@media (max-width: 380px) {
  .info-activities-title span.highlight {
    font-size: 40px;
  }
}

@media (max-width: 340px) {
  .info-activities-title span.highlight {
    font-size: 35px;
  }
}

@media (max-width: 300px) {
  .info-activities-title span.highlight {
    font-size: 30px;
  }
}

/* =========================================
   LANGUAGE SWITCHER
   ========================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #FFFFFF;
  cursor: pointer;
  margin-right: 40px;
}

.lang-switcher:hover .lang-switch-pill {
  border-color: var(--works-bg);
}

.lang-switcher:hover .lang-switch-circle {
  background-color: var(--works-bg);
}

.lang-switch-pill {
  width: 28px;
  height: 16px;
  border: 3px solid #FFFFFF;
  border-radius: 20px;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.lang-switch-circle {
  width: 7px;
  height: 7px;
  background-color: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  transition: left 0.3s ease, right 0.3s ease, background-color 0.3s ease;
}

.lang-switcher.lang-pl .lang-switch-circle {
  right: 2px;
  left: auto;
}

.lang-switcher.lang-en .lang-switch-circle {
  left: 2px;
  right: auto;
}

.lang-switch-text {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}




@media (max-width: 820px) {
  .header-container {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .hero-link {
    text-decoration-thickness: 2px;
  }

  .ig-link,
  .footer-link {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .ig-feed-container .sbi_item {
    padding: 0px 8px !important;
  }

  .site-main .elementor .e-flexbox-base {
    padding-left: 0px;
    padding-right: 0px;
  }

  .site-content h1,
  .site-content h2,
  .elementor-widget-heading h1.elementor-heading-title,
  .elementor-widget-heading h2.elementor-heading-title,
  .site-content p,
  .elementor-widget-text-editor p {
    max-width: 100%;
  }
}


@media (max-width: 480px) {
  .site-logo img.header-mobile-logo {
    width: 115px;
  }
}

/*
@media (max-width: 360px) {
  .hero-title {
    font-size: 28px;
  }

  .hfp-item a {
    font-size: 60px;
  }

  .footer-bottom-columns {
    font-size: 22px;
    line-height: 144%;
  }

  .site-content h1,
  .site-content h2,
  .elementor-widget-heading h1.elementor-heading-title,
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 28px;
  }
}*/

/* =========================================
   ELEMENTOR CUSTOM WIDGET: Wyróżniona liczba
   ========================================= */
.featured-number-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  width: 100%;
}

.featured-number-left {
  max-width: 50%;
  font-weight: 450;
  font-size: min(480px, 25vw);
  line-height: 100%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.featured-number-right {
  font-style: normal;
  font-weight: 450;
  font-size: 48px;
  line-height: 104%;
  leading-trim: both;
  text-edge: cap;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 60px;
  /* lekka korekta, żeby wyrównało się ładnie z dolną krawędzią liczby */
}

.featured-number-right .highlight {
  background-color: #F7931E;
  color: #FFFFFF;
  display: inline !important;
  width: fit-content;
  padding: 0px 0px;
  animation: colorCycleHighlight 36s infinite;
  /* podobnie jak w info-activities */
  margin-bottom: 2px;
}

/* RWD: Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .featured-number-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .featured-number-left {
    font-size: 150px;
    line-height: 100%;
  }

  .featured-number-right {
    font-size: 32px;
    margin-bottom: 0;
  }

  .featured-number-right .highlight {
    padding: 4px 0px;
  }
}

@media (max-width: 1100px) {
  .featured-number-right {
    font-size: 38px;
  }

  .ig-feed-container .sbi_item {
    flex: 0 0 calc(100vw / 4) !important;
    width: calc(100vw / 4) !important;
  }
}

@media (max-width: 940px) {
  .featured-number-right {
    font-size: 32px;
  }
}

@media (max-width: 380px) {
  .featured-number-right {
    font-size: 28px;
  }
}

/* =========================================
   ELEMENTOR CUSTOM WIDGET: Dynamiczna Galeria
   ========================================= */

.dynamic-gallery-container {
  /* Zgodnie z ustaleniami: bez wyśrodkowania (do lewej), brak przerw */
}

.dynamic-gallery-container img {
  width: 100%;
  height: auto;
  display: block;
  /* Usuwa domyślny biały odstęp pod obrazkiem w liniowych elementach */
}

/* Wariant 1: 1 zdjęcie na 75% szerokości */
.dynamic-gallery-container.layout-1 {
  width: 75%;
}

/* Wariant 2 i 3: kontener na 87% szerokości */
.dynamic-gallery-container.layout-2,
.dynamic-gallery-container.layout-3 {
  width: 87%;
}

.dg-row {
  display: flex;
  flex-wrap: nowrap;
  /* Zawsze obok siebie na tym etapie */
}

/* Asymetria 51% do 49% */
.dg-row>.dg-half:first-child {
  flex: 0 0 51%;
  width: 51%;
}

.dg-row>.dg-half:last-child {
  flex: 0 0 49%;
  width: 49%;
  align-self: flex-end;
}

/* Wariant 1+2: Górny wiersz (jedno zdjęcie 78%) dociskane do prawej */
.layout-1-2 .dg-row-top {
  justify-content: flex-end;
}

/* Wariant 3: dolny wiersz (jedno zdjęcie 78%) dociskane do lewej */
.dg-seventy-eight {
  width: 78%;
}




.elementor-element {
  padding: 0px !important;
}

.elementor-element .e-con-inner {
  width: 100% !important;
  max-width: none !important;
}

/* RWD: Dynamiczna Galeria (Mobile) */
@media (max-width: 768px) {

  .dynamic-gallery-container.layout-1,
  .dynamic-gallery-container.layout-2,
  .dynamic-gallery-container.layout-3 {
    width: 100%;
  }

  .dg-row {
    flex-direction: column;
  }

  /* Reset wszystkich elementów na mobile */
  .dg-row>.dg-half:first-child,
  .dg-row>.dg-half:last-child,
  .dg-seventy-eight {
    flex: none;
    width: 100%;
    align-self: flex-start;
    /* do lewej */
  }

  /* Reset wyrównania dla górnego wiersza wariantu 1+2 */
  .layout-1-2 .dg-row-top {
    justify-content: flex-start;
  }

  /* Layout 2: 1 zdjęcie na 100%, 2 zdjęcie 87% do prawej */
  .layout-2 .dg-row>.dg-half:last-child {
    width: 87%;
    align-self: flex-end;
  }

  /* Layout 3 (2+1): 1 zdjęcie 100%, 2 zdjęcie 87% do lewej, 3 zdjęcie 87% do prawej */
  .layout-2-1 .dg-row>.dg-half:last-child {
    width: 87%;
    align-self: flex-start;
  }

  .layout-2-1 .dg-row-bottom .dg-seventy-eight {
    width: 87%;
    align-self: flex-end;
  }

  /* Layout 3 (1+2): 1 zdjęcie 100%, 2 zdjęcie 87% do prawej, 3 zdjęcie 87% do lewej */
  .layout-1-2 .dg-row>.dg-half:first-child {
    width: 87%;
    align-self: flex-end;
  }

  .layout-1-2 .dg-row>.dg-half:last-child {
    width: 87%;
    align-self: flex-start;
  }
}

/* Przebudowa hfp-images na desktop (zawsze widoczne w viewporcie) */
@media (min-width: 769px) {
  .hfp-images {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    right: 0;
  }

  .hfp-img-1 {
    top: 0 !important;
    width: auto !important;
    height: 49vh !important;
  }

  .hfp-img-2 {
    top: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    height: 33vh !important;
    right: 3vw !important;
    width: auto !important;
  }

  .hfp-img-3 {
    top: auto !important;
    bottom: 0 !important;
    width: auto !important;
    height: 45vh !important;
    right: 14.79vw;
  }
}