:root {
  --bg-primary: #080808;
  --bg-secondary: #222222;
  --text-primary: #F0F0F0;
  --text-secondary: #888888;
  --card-blue: #5E9BFF;
  --card-lime: #DAEF68;
  --card-pink: #FFB1EE;
  --card-orange: #FF8E59;
  --accent: linear-gradient(135deg, #6056f0, #9154e7, #4285f4, #40d9c6);
  --accent-solid: #9154e7;
  --border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --bg-primary: #f5f5f2;
  --bg-secondary: #eaeae7;
  --text-primary: #0a0a0a;
  --text-secondary: #5a5a5a;
  --border: rgba(0, 0, 0, 0.1);
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.5s ease;
}

.theme-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35);
}

.theme-toggle svg { pointer-events: none; }

/* Ciemny motyw: pokaż słońce (klik → jasny) */
.icon-moon { display: none; }

/* Jasny motyw: pokaż księżyc (klik → ciemny) */
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* --- PRELOADER --- */
.preloader {
  position: fixed;
  inset: 0;
  background-color: #080808;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader.is-exiting {
  transform: translateY(-100%);
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  width: min(64rem, 85vw);
}

.preloader__text-wrap {
  position: relative;
  font-family: 'Google Sans', Helvetica, Arial, sans-serif;
  font-size: clamp(4.8rem, 11vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  user-select: none;
}

.preloader__dim {
  display: block;
  color: rgba(240, 240, 240, 0.1);
}

.preloader__fill {
  position: absolute;
  inset: 0;
  color: #F0F0F0;
  clip-path: inset(0 100% 0 0);
  white-space: nowrap;
}

.preloader__track {
  width: 100%;
  height: 1px;
  background: rgba(240, 240, 240, 0.1);
  overflow: hidden;
}

.preloader__track-fill {
  height: 100%;
  width: 0%;
  background: rgba(240, 240, 240, 0.5);
}

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

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

@media (max-width: 768px) { html { font-size: 57.5%; } }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Google Sans', Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.25;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- AMBIENT BACKGROUND --- */
.ambient-background {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.noise-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.04;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* --- LAYOUT --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

@media (max-width: 768px) { .container { padding: 0 2rem; } }

/* --- HEADER --- */
.header {
  height: 10rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4rem;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  position: fixed;
  width: 100%;
  left: 0; top: 0;
  z-index: 50;
  transition:
    height 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.5s ease,
    backdrop-filter 0.5s ease,
    -webkit-backdrop-filter 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    padding 0.45s ease;
}


.header__title {
  font-weight: 700;
  font-size: 2.8rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  justify-self: center;
  transition: font-size 0.3s ease;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.5rem;
}

.hamburger__line {
  width: 2.8rem;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body.menu-open .hamburger__line:nth-child(1) { transform: translateY(0.45rem) rotate(45deg); }
body.menu-open .hamburger__line:nth-child(2) { transform: translateY(-0.45rem) rotate(-45deg); }

.mobile-only-header { display: none; }

/* Contact icon — mobile only */
.header-contact-btn {
  display: none;
}

.nav-links, .social-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.4rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links { justify-self: start; }
.social-links { justify-self: end; }

.nav-links a, .social-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.nav-links a:hover, .social-links a:hover { color: #fff; }

[data-theme="light"] .nav-links a,
[data-theme="light"] .social-links a { color: rgba(10, 10, 10, 0.7); }

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .social-links a:hover { color: #000; }

/* Liquid glass — aktywny po scrollu */
.header.scrolled {
  height: 7rem;
  background-color: rgba(10, 10, 14, 0.28);
  backdrop-filter: blur(28px) saturate(220%) brightness(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(220%) brightness(1.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .header.scrolled {
  background-color: rgba(245, 245, 242, 0.78);
  backdrop-filter: blur(28px) saturate(140%) brightness(1.02);
  -webkit-backdrop-filter: blur(28px) saturate(140%) brightness(1.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
}


.header.scrolled .header__title { font-size: 2.2rem; }

/* Mobile header — portrait phones + landscape phones (max-height 500px) */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
  .header { padding: 0 2rem; height: auto; display: flex; justify-content: center; align-items: center; min-height: 6rem; }
  body.menu-open .header { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh !important; background-color: rgba(8, 8, 8, 0.99) !important; backdrop-filter: blur(20px); display: block; overflow-y: auto; padding: 0; }
  .header__title { font-size: 2.2rem; z-index: 101; position: relative; }
  body.menu-open .header__title { position: fixed; top: 2rem; left: 50%; transform: translateX(-50%); z-index: 102; }
  .hamburger { display: flex; position: absolute; left: 2rem; }
  body.menu-open .hamburger { position: fixed; top: 2.5rem; z-index: 102; }
  .mobile-only-header { display: block; font-size: 1.2rem; color: var(--text-secondary); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; text-align: center; }
  .nav-links { display: none; }
  body.menu-open .nav-links { display: flex; position: static; width: 100%; flex-direction: column; justify-content: flex-start; align-items: center; margin-top: 14vh; gap: 2.4rem; font-size: clamp(3.5rem, 10vw, 6.5rem); font-weight: 700; letter-spacing: -0.03em; opacity: 0; pointer-events: auto; animation: menuFadeIn 0.4s ease forwards; }
  .nav-links a, body.menu-open .nav-links a { color: var(--text-primary); }
  .social-links { display: none; }
  body.menu-open .social-links { display: flex; position: static; width: 100%; flex-direction: column; justify-content: flex-start; align-items: center; margin-top: 4rem; padding-bottom: 8rem; gap: 2rem; font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 600; letter-spacing: -0.02em; opacity: 0; pointer-events: auto; animation: menuFadeIn 0.4s ease forwards 0.1s; }
  body.menu-open .social-links a { color: var(--text-secondary); }
  body.menu-open { overflow: hidden; }
  @keyframes menuFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

  /* Ikonka kontaktu po prawej */
  .header-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    color: var(--text);
    text-decoration: none;
    z-index: 101;
    transition: opacity 0.2s;
  }
  .header-contact-btn:hover { opacity: 0.6; }
  body.menu-open .header-contact-btn { display: none; }

  [data-theme="light"] .header-contact-btn { color: var(--text); }
}

/* --- HERO --- */
.hero {
  position: relative;
  text-align: center;
  padding-top: 26rem;
  padding-bottom: 16rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) { .hero { padding-top: 14rem; padding-bottom: 8rem; min-height: auto; } }

.hero__tag {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border: 1px solid rgba(145, 84, 231, 0.3);
  padding: 0.6rem 1.8rem;
  border-radius: 10rem;
  margin-bottom: 3.2rem;
}

.hero__heading {
  font-size: clamp(4.5rem, 8.5vw, 13rem);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 1200px;
}

.hero__heading--sub {
  font-size: clamp(2.6rem, 4.8vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
}

.hero__subtitle {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 2.8rem auto 0;
  line-height: 1.5;
}

.hero__cta-container {
  margin-top: 5rem;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.gl-buttons {
  cursor: pointer;
  padding: 1.5rem 3.2rem;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 100%;
  border-radius: 4rem;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--bg-primary);
  background-color: var(--text-primary);
  border: 1px solid var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.gl-buttons span { position: relative; z-index: 2; transition: color 0.3s ease; }
.gl-buttons::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 400%;
  border-radius: 9999rem;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 0;
  background: var(--accent);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
}

.gl-buttons:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.gl-buttons--ghost {
  background-color: transparent;
  color: var(--text-primary);
}
.gl-buttons--ghost:hover span { color: #fff; }
.gl-buttons:not(.gl-buttons--ghost):hover span { color: #fff; }

/* --- MARQUEE --- */
.marquee-section {
  overflow: hidden;
  padding: 2rem 0;
  margin: 0;
  background: transparent;
  border-top: 1px solid #1e6eff;
  border-bottom: 1px solid #1e6eff;
}

.marquee-track { overflow: hidden; }

.marquee-inner {
  display: flex;
  gap: 5rem;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-inner span {
  font-size: clamp(1.4rem, 1.6vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e6eff;
  white-space: nowrap;
}

.marquee-dot {
  color: #1e6eff !important;
  opacity: 0.45;
  font-size: 0.6rem !important;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- LINE REVEAL (hero heading) --- */
.line-wrap { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active .line-inner { transform: translateY(0); }
.line-inner:nth-child(1) { transition-delay: 0.05s; }

/* --- WORD REVEAL (hero subtitle) --- */
.word-wrap { overflow: hidden; display: inline-block; vertical-align: top; margin-right: 0.28em; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active .word-inner { transform: translateY(0); }


/* --- 3D CAROUSEL PROJECTS --- */
.imac-carousel {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;
  overflow-y: visible;
  padding: 4rem 0 6rem;
}

.imac-carousel__track {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  perspective: 2000px;
  transform-style: preserve-3d;
}

.imac-slide {
  grid-area: 1 / 1; /* Stacks all slides in the exact same cell perfectly */
  width: clamp(320px, 65vw, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(0) translateZ(-600px) scale(0.6);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.7s ease;
  pointer-events: none;
  z-index: 1;
  cursor: pointer;
}

.imac-slide.active {
  opacity: 1;
  transform: translateX(0) translateZ(0) scale(1);
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
}

.imac-slide.prev {
  opacity: 0.5;
  transform: translateX(-65%) translateZ(-300px) scale(0.8);
  z-index: 2;
  pointer-events: auto;
}

.imac-slide.next {
  opacity: 0.5;
  transform: translateX(65%) translateZ(-300px) scale(0.8);
  z-index: 2;
  pointer-events: auto;
}

.imac-slide__img {
  width: 100%;
  max-height: 50vh; /* Zapobiega "wyjeżdżaniu" wielkich monitorów poza stronę */
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
  margin-bottom: 3.2rem;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.imac-slide:hover:not(.active) .imac-slide__img {
  filter: drop-shadow(0 20px 40px rgba(255,255,255,0.05));
  transform: translateY(-8px);
}

.imac-slide__info {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.imac-slide.active .imac-slide__info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
  pointer-events: auto;
}

.imac-slide__category {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 1rem;
  font-weight: 600;
}

.imac-slide__title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 2.4rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.imac-slide__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.imac-carousel__btn {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background-color: #3e4fe5;
  border: 1px solid #3e4fe5;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  animation: pulse-glow 3s infinite alternate;
  outline: none;
}

.imac-carousel__btn svg {
  width: 2.4rem;
  height: 2.4rem;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.imac-carousel__btn:hover {
  animation: none;
  background-color: #ffffff;
  color: #3e4fe5;
  box-shadow: 0 0 24px rgba(62, 79, 229, 0.4);
  transform: scale(1.05);
  border-color: #ffffff;
}

.imac-carousel__btn.prev-btn:hover svg {
  transform: translateX(-4px);
}

.imac-carousel__btn.next-btn:hover svg {
  transform: translateX(4px);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 79, 229, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 15px 0 rgba(62, 79, 229, 0.4);
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  .imac-carousel__track {
    height: 55vh;
    min-height: 450px;
  }
  .imac-slide.prev {
    transform: translateX(-80%) translateZ(-300px) scale(0.65);
    opacity: 0.2;
  }
  .imac-slide.next {
    transform: translateX(80%) translateZ(-300px) scale(0.65);
    opacity: 0.2;
  }
}

/* --- SECTIONS --- */
.section-padding { padding-top: 12rem; padding-bottom: 6rem; }
@media (max-width: 768px) { .section-padding { padding-top: 7rem; padding-bottom: 3rem; } }

.section-header {
  margin-bottom: 6rem;
  text-align: center;
}
@media (max-width: 768px) { .section-header { margin-bottom: 3.2rem; } }
.section-title {
  font-size: clamp(3.6rem, 5.5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.section-subtitle {
  font-size: clamp(1.6rem, 2vw, 2rem);
  color: var(--text-secondary);
  margin-top: 1.6rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Per-character section title animation */
.title-split { display: block; }

.char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.char-wrap--space { width: 0.28em; }

.char-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .char-inner { transform: translateY(0); }

/* Subtitle wślizguje się chwilę po tytule */
.section-subtitle {
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.reveal.active .section-subtitle { transform: translateY(0); }

/* --- MAGIC TEXT EXPERIENCE SECTION --- */
.magic-text-section {
  position: relative;
  height: 300vh;
}

@media (max-width: 768px) {
  .magic-text-section { height: 250vh; }
}

.magic-text-sticky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.magic-text-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 4rem;
}

@media (max-width: 768px) {
  .magic-text-content { padding: 0 2rem; }
}

.magic-text {
  font-size: clamp(2.8rem, 4.5vw, 5.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.4rem;
  margin: 0;
}

.magic-word { position: relative; display: inline-block; }
.magic-break { flex-basis: 100%; height: 0; }
.magic-word-bg { color: var(--text-primary); opacity: 0.15; }
.magic-word-fg { position: absolute; left: 0; top: 0; color: var(--text-primary); opacity: 0; transition: opacity 0.5s ease; }

.scroll-hint-mobile {
  position: absolute;
  top: 12rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 10;
}
.scroll-hint-mobile.hidden { opacity: 0; }
.scroll-hint-mobile__label {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.scroll-hint-mobile__arrow {
  width: 3rem;
  height: 3rem;
  color: var(--text-primary);
  animation: scrollArrowBounce 1.6s ease-in-out infinite;
}
@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@media (min-width: 1025px) {
  .scroll-hint-mobile { display: none; }
}

/* --- SERVICES --- */
.services-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  gap: 3.2rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: padding-left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-row:hover { padding-left: 2rem; }
.service-num { font-size: 1.3rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.05em; }
.service-name { font-size: clamp(3rem, 4.5vw, 6rem); font-weight: 600; letter-spacing: -0.03em; }
.service-desc { font-size: 1.7rem; line-height: 1.5; color: var(--text-secondary); }
.service-icon { font-size: 3.2rem; font-weight: 300; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.service-row:hover .service-icon { transform: translate(6px, -6px); }

@media (max-width: 1024px) {
  .service-row { grid-template-columns: auto 1fr; gap: 1.6rem; padding: 3rem 0; }
  .service-desc, .service-icon { display: none; }
  .service-row:hover { padding-left: 1.2rem; }
}

/* --- STEPS --- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }

.step-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 3.2rem;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.15); }
.step-number { font-size: clamp(6rem, 8vw, 10rem); font-weight: 700; color: var(--accent-solid); line-height: 1; margin-bottom: 3.2rem; letter-spacing: -0.05em; }
.step-card:nth-child(2) .step-number { color: var(--accent-solid); }
.step-card:nth-child(3) .step-number { color: var(--accent-solid); }
.step-title { font-size: 2.8rem; margin-bottom: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.step-desc { font-size: 1.7rem; line-height: 1.6; color: var(--text-secondary); }

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 300px);
    gap: 1.2rem;
    padding-bottom: calc(3 * 1.2rem);
  }
  .step-card {
    position: sticky;
    top: 10vh;
    height: 300px;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    perspective: 1500px;
  }
  .step-card__inner {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 3rem 2.4rem;
    border-radius: 2.4rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform-origin: 50% 0%;
    will-change: transform, filter;
    transform-style: preserve-3d;
  }
  .css-scroll-anim .step-card__inner {
    animation: scard-exit linear forwards;
    animation-timeline: view();
    animation-range: exit-crossing 0% exit-crossing 100%;
  }
  .step-card:nth-child(1) .step-card__inner { padding-top: calc(3rem + 0.8em); }
  .step-card:nth-child(2) .step-card__inner { padding-top: calc(3rem + 1.6em); }
  .step-card:nth-child(3) .step-card__inner { padding-top: calc(3rem + 2.4em); }
  .step-number { margin-bottom: 2rem; }
}

@media (pointer: coarse) {
  .step-card:hover,
  .pricing-card:hover,
  .gl-buttons:hover { transform: none !important; }
}

/* --- PRICING --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.pricing-extra-cta {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 3.2rem;
  padding: 4.8rem 4rem;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  position: relative;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.pricing-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.pricing-card--highlight { background-color: var(--card-lime); border-color: transparent; color: #000; }
.pricing-card--highlight:hover { border-color: transparent; }
.pricing-badge {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.6rem 2rem;
  border-radius: 4rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.pricing-title { font-size: 2rem; font-weight: 500; color: var(--text-secondary); }
.pricing-card--highlight .pricing-title { color: rgba(0,0,0,0.6); }
.pricing-price { font-size: clamp(3.6rem, 4vw, 5rem); font-weight: 700; margin: 1.6rem 0 3.2rem; letter-spacing: -0.04em; }
.pricing-card--highlight .pricing-price { color: #000; }
.pricing-features { list-style: none; margin-bottom: 4rem; flex-grow: 1; }
.pricing-features li { font-size: 1.7rem; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 1.2rem; }
.pricing-features li::before { content: "✦"; color: var(--text-secondary); font-size: 1.2rem; flex-shrink: 0; }
.pricing-card--highlight .pricing-features li::before { color: rgba(0,0,0,0.4); }
.pricing-card--highlight .pricing-features li { color: #000; }
.pricing-cta { width: 100%; }
.pricing-card--highlight .gl-buttons { color: #000; border-color: #000; background-color: transparent; }
.pricing-card--highlight .gl-buttons::after { background-color: #000; }
.pricing-card--highlight .gl-buttons:hover span { color: var(--card-lime); }
@media (max-width: 768px) { .pricing-card { padding: 3.6rem 2.4rem; border-radius: 2.4rem; } }

/* --- BLOG --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 2.4rem;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}

.blog-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.14); }
[data-theme="light"] .blog-card:hover { border-color: rgba(0,0,0,0.12); }

.blog-card__cover {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem 1.6rem 0 0;
  text-decoration: none;
  background: var(--bg-primary);
}

.blog-card__cover img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card__cover img { transform: scale(1.03); }

.blog-card__cover-tag {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 1.1rem;
  border-radius: 4rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.blog-card__date {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
}

.blog-card__body {
  padding: 3.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__title {
  font-size: clamp(1.8rem, 1.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.4rem;
  color: var(--text-primary);
}

.blog-card__excerpt {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 2.8rem;
}

.blog-card__link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s ease;
}

.blog-card__link:hover { gap: 1rem; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .blog-card__cover { aspect-ratio: 16 / 9; }
  .blog-card__cover img { height: 100%; object-fit: cover; }
}

/* --- CONTACT SECTION --- */
.contact-section { border-top: 1px solid var(--border); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
}

.contact-cta__label {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 2.4rem;
  display: block;
}

.contact-cta__title {
  font-size: clamp(3.6rem, 4.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 2.4rem;
}

.contact-cta__desc {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 3.6rem;
  max-width: 42rem;
}

.contact-perks {
  list-style: none;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-perks li {
  font-size: 1.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.perk-icon {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-detail {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-detail:hover { opacity: 0.55; }

.contact-form-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 2.4rem;
  padding: 4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.form-label {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.4rem 1.8rem;
  font-size: 1.6rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder { color: var(--text-secondary); opacity: 0.55; }

.form-input:focus {
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px rgba(145, 84, 231, 0.12);
}

.form-textarea { resize: vertical; min-height: 15rem; }

.contact-submit { width: 100%; margin-top: 0.8rem; transition: opacity 0.2s; }
.cf-privacy { font-size: 1.25rem; color: var(--text-secondary); margin-top: 1.2rem; text-align: center; }
.cf-privacy a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.cf-privacy a:hover { color: var(--text-primary); }
.contact-submit.cf-loading { opacity: 0.6; cursor: not-allowed; }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.cf-result {
  display: none;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 1.2rem 1.6rem;
  border-radius: 1rem;
  margin-bottom: 0.8rem;
}
.cf-result--success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.cf-result--error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
[data-theme="light"] .cf-result--success { background: rgba(34, 197, 94, 0.08); }
[data-theme="light"] .cf-result--error   { background: rgba(239, 68, 68, 0.08); }

/* Testimonials */
.reviews-marquee {
  overflow: hidden;
  width: 100%;
  cursor: default;
}

.reviews-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: reviewsScroll 28s linear infinite;
}

.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

@keyframes reviewsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  margin: 0;
  padding: 2.8rem 3rem;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 36rem;
  flex-shrink: 0;
}

[data-theme="light"] .review-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.review-card__stars {
  color: #FBBC04;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.review-card__quote {
  font-size: 1.55rem;
  line-height: 1.6;
  color: var(--text-primary);
  flex: 1;
}

.review-card__footer {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.review-card__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-card__name {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text-primary);
}

.review-card__role {
  display: block;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 4rem;
}

.contact-direct__label {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.contact-whatsapp {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: opacity 0.2s ease;
  margin-top: 0.4rem;
}

.contact-whatsapp:hover { opacity: 0.55; }

.contact-form__heading {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2.8rem;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 5rem; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 2.8rem 2rem; border-radius: 1.8rem; }
}

/* --- FOOTER --- */
.footer-new {
  position: relative;
  border-top: 1px solid var(--border);
  margin-top: 8rem;
  overflow: hidden;
}

.footer-new__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.2rem 4rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.footer-new__links {
  display: flex;
  gap: 3.2rem;
}

.footer-new__links a {
  font-size: 1.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-new__links a:hover { color: var(--text-primary); }

.footer-wordmark-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 1;
}

.footer-wordmark {
  font-family: 'Google Sans', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  display: block;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  user-select: none;
}

@media (max-width: 768px) {
  .footer-new { margin-top: 4rem; }
  .footer-new__bar { padding: 2.4rem 2rem; flex-direction: column; gap: 1.2rem; text-align: center; }
  .footer-new__links { flex-direction: column; gap: 0.6rem; align-items: center; }
}

/* --- CUSTOM CURSOR --- */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.custom-cursor__ring {
  width: 4rem;
  height: 4rem;
  border: 1.5px solid rgba(240, 240, 240, 0.5);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
}

.custom-cursor__dot {
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--text-primary);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.3s ease;
}

.custom-cursor__text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-primary);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.custom-cursor.hover-active .custom-cursor__ring {
  width: 9rem;
  height: 9rem;
  background-color: var(--text-primary);
  border-color: transparent;
}

.custom-cursor.hover-active .custom-cursor__dot { opacity: 0; }
.custom-cursor.hover-active .custom-cursor__text { opacity: 1; transition-delay: 0.05s; }

.custom-cursor.scroll-hint .custom-cursor__ring {
  width: 8rem;
  height: 8rem;
  background-color: transparent;
  border-color: var(--text-primary);
  animation: scrollHintPulse 2s ease-in-out infinite;
}
.custom-cursor.scroll-hint .custom-cursor__dot { opacity: 0; }
.custom-cursor.scroll-hint .custom-cursor__text {
  opacity: 1;
  color: var(--text-primary);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition-delay: 0.05s;
}

@keyframes scrollHintPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.14); opacity: 0.45; }
}

@media (max-width: 1024px) { .custom-cursor { display: none; } }

/* --- REVEAL --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

#hero {
  position: relative;
  background: #000 !important;
}

[data-theme="light"] #hero {
  background: #f5f5f2 !important;
}
.ocean {
    position: absolute;
    width: 100%;
    height: 55vh;
    bottom: 0;
    left: 0;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
    /* Usunięto transition, aby nie kłóciło się z JS */
}
.waves-svg {
    width: 100%;
    height: 100%;
    display: block;
    transform-origin: bottom;
    filter: blur(25px) saturate(1.5);
    will-change: transform;
}

/* ============================================================
   PROJEKT PAGE
   ============================================================ */

/* --- Header variant --- */
.header--projekt {
  grid-template-columns: 1fr auto 1fr;
}

.header__back {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  justify-self: start;
}
.header__back:hover { color: var(--text-primary); }
.header__back-arrow {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.header__back:hover .header__back-arrow { transform: translateX(-4px); }

.header__open-site {
  justify-self: end;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.header__open-site:hover { color: var(--text-primary); }

/* --- Hero --- */
.projekt-page { padding-top: 10rem; }

.projekt-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.4rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.projekt-tag {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border: 1px solid rgba(145, 84, 231, 0.3);
  padding: 0.6rem 1.8rem;
  border-radius: 10rem;
  margin-bottom: 1.6rem;
}

.projekt-title {
  font-size: clamp(3.6rem, 5.5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

/* --- Screenshot frame (like a photo) --- */
.projekt-frame-section {
  padding: 1.6rem 3rem 10rem;
  width: 100%;
  box-sizing: border-box;
}

.projekt-frame {
  display: block;
  width: 100%;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    0 20px 60px rgba(0,0,0,0.5),
    0 60px 120px rgba(0,0,0,0.4);
  text-decoration: none;
  cursor: pointer;
}

.projekt-frame__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.projekt-frame:hover .projekt-frame__img {
  transform: scale(1.015);
}

.projekt-frame__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 3.2rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.projekt-frame:hover .projekt-frame__overlay {
  opacity: 1;
}

.projekt-frame__overlay-text {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.projekt-frame:hover .projekt-frame__overlay-text {
  transform: translateY(0);
}

/* --- Details grid --- */
.projekt-details {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  padding: 8rem 4rem;
  border-top: 1px solid var(--border);
}

.projekt-col__title {
  font-size: clamp(2.8rem, 3.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 3.2rem;
}

.projekt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.projekt-list li {
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 2.4rem;
  position: relative;
}
.projekt-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--accent-solid);
  font-size: 1rem;
}

/* --- CTA --- */
.projekt-cta {
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  padding: 10rem 4rem 12rem;
  border-top: 1px solid var(--border);
}
.projekt-cta__label {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 2.4rem;
}
.projekt-cta__heading {
  font-size: clamp(4rem, 7vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 2rem;
}
.projekt-cta__sub {
  font-size: 1.8rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
}
.projekt-cta__btn { min-width: 24rem; }

/* Przycisk "Otwórz stronę" pod screenshotem — tylko mobile */
.projekt-frame-mobile-cta {
  display: none;
}

@media (max-width: 768px) {

  /* Header adjustments */
  .header--projekt { display: flex; justify-content: center; }
  .header__open-site { display: none; }
  .header__back { position: absolute; left: 2rem; }
  .header__back-label { display: none; }

  .projekt-page { padding-top: 7rem; }

  /* Hero compact */
  .projekt-hero {
    display: flex;
    padding: 2.4rem 2rem 1.6rem;
  }
  .projekt-title { font-size: clamp(3.2rem, 8vw, 5rem); }

  /* Screenshot full-width, no side padding/shadow */
  .projekt-frame-section { padding: 0 0 2.4rem; }
  .projekt-frame {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  /* Przycisk pod screenshotem */
  .projekt-frame-mobile-cta {
    display: flex;
    justify-content: center;
    padding: 2rem 2rem 0;
  }
  .projekt-frame-mobile-cta .gl-buttons {
    width: 100%;
  }

  /* Ukryj hover overlay na mobile */
  .projekt-frame__overlay { display: none; }

  /* Details inline, single column */
  .projekt-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.2rem;
    padding: 3.2rem 2rem;
  }
  .projekt-col__title { font-size: 2.4rem; margin-bottom: 1.6rem; }
  .projekt-list li { font-size: 1.6rem; }

  /* CTA visible */
  .projekt-cta {
    display: block;
    padding: 4rem 2rem 6rem;
  }
  .projekt-cta__heading { font-size: clamp(3.2rem, 8vw, 5.5rem); }
  .projekt-cta__btn { width: 100%; }

}

@media (max-width: 1024px) and (min-width: 769px) {
  .projekt-frame-section { padding: 1.6rem 1.6rem 6rem; }
  .projekt-details { gap: 4rem; }
}

/* === STACKING SERVICE CARDS === */
#service-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, clamp(400px, 44vw, 520px));
  gap: 1.5rem;
  padding-bottom: calc(5 * 1.5rem);
}

.scard {
  position: sticky;
  top: 10vh;
  height: clamp(400px, 44vw, 520px);
  padding-top: calc(var(--index) * 0.8em);
  perspective: 1500px;
}

.scard__content {
  box-sizing: border-box;
  padding: 4.5rem 5rem;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  transform-origin: 50% 0%;
  will-change: transform, filter;
  transform-style: preserve-3d;
  text-decoration: none;
}

.css-scroll-anim .scard__content {
  animation: scard-exit linear forwards;
  animation-timeline: view();
  animation-range: exit-crossing 0% exit-crossing 100%;
}

@keyframes scard-exit {
  to {
    transform: scale(0.82) translateY(-8vh) rotateX(-18deg);
    filter: brightness(0.5);
    border-radius: 14px;
  }
}

.scard:nth-child(1) { --index: 1; }
.scard:nth-child(1) .scard__content { background: var(--card-lime); color: #080808; }

.scard:nth-child(2) { --index: 2; }
.scard:nth-child(2) .scard__content { background: linear-gradient(135deg, #1a4fff 0%, #2d7bff 100%); color: #fff; }

.scard:nth-child(3) { --index: 3; }
.scard:nth-child(3) .scard__content { background: linear-gradient(135deg, #3a5cf5 0%, #6056f0 100%); color: #fff; }

.scard:nth-child(4) { --index: 4; }
.scard:nth-child(4) .scard__content { background: linear-gradient(135deg, #6056f0 0%, #8a4de8 100%); color: #fff; }

.scard:nth-child(5) { --index: 5; }
.scard:nth-child(5) .scard__content { background: linear-gradient(135deg, #8a4de8 0%, #9154e7 60%, #7b38d4 100%); color: #fff; }

.scard__num {
  font-size: clamp(14rem, 22vw, 26rem);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
  color: inherit;
  opacity: 0.14;
}

.scard__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.scard__title {
  font-size: clamp(4rem, 5vw, 6.5rem);
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.scard__desc {
  font-size: clamp(1.5rem, 1.6vw, 1.9rem);
  max-width: 600px;
  line-height: 1.6;
  opacity: 0.72;
  margin: 0;
}

.scard__cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 1rem 2.2rem;
  border: 1.5px solid #000;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  width: fit-content;
  background: #000;
  color: #fff;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.scard__cta:hover {
  background: #222;
  transform: translateY(-2px);
}

.scard:nth-child(1) .scard__cta {
  background: transparent;
  color: #000;
  border-color: #000;
}

.scard:nth-child(1) .scard__cta:hover {
  background: #000;
  color: var(--card-lime);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  #service-cards {
    grid-template-rows: repeat(5, 380px);
  }
  .scard {
    height: 380px;
  }
  .scard__content {
    padding: 3rem 2.8rem;
  }
  .scard__num {
    font-size: clamp(10rem, 30vw, 14rem);
  }
}
