/* ====== Reset & base ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --void: #05060b;
  --void-2: #0c0e1c;
  --ink: #f4f6ff;
  --line-dark: rgba(244, 246, 255, 0.13);
  --line-light: rgba(244, 246, 255, 0.16);
  --dim-dark: rgba(200, 205, 230, 0.68);
  --dim-light: rgba(200, 205, 230, 0.72);

  --bg: var(--void);
  --fg: var(--ink);
  --line: var(--line-dark);
  --dim: var(--dim-dark);

  --accent-a: #c8ff3d;
  --accent-b: #22c55e;
  --accent-grad: linear-gradient(135deg, var(--accent-a), var(--accent-b));

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; background: var(--void); }
html.loading { overflow: hidden; height: 100%; }
html.loading body { overflow: hidden; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 82% 8%, rgba(34, 197, 94, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 40% at 12% 30%, rgba(200, 255, 61, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 85%, rgba(34, 197, 94, 0.08), transparent 60%);
}

@media (max-width: 860px), (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent-b); color: var(--void); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }

/* ====== Theme sections (both dark, subtle depth variation) ====== */
.theme-dark { background: var(--void); color: var(--ink); --line: var(--line-dark); --dim: var(--dim-dark); }
.theme-light { background: var(--void-2); color: var(--ink); --line: var(--line-light); --dim: var(--dim-light); }

/* ====== Starfield ====== */
.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ====== Grain overlay ====== */
.grain {
  position: fixed;
  inset: -200px;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(10) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -4%); }
  20% { transform: translate(-6%, 2%); }
  30% { transform: translate(4%, -2%); }
  40% { transform: translate(-2%, 6%); }
  50% { transform: translate(-8%, 0%); }
  60% { transform: translate(6%, 4%); }
  70% { transform: translate(0%, -6%); }
  80% { transform: translate(-4%, 4%); }
  90% { transform: translate(4%, 0%); }
}

/* ====== Custom cursor ====== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-a);
  transition: opacity .2s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(244,246,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s;
}
.cursor-ring.active {
  width: 58px; height: 58px;
  background: var(--accent-grad);
  border-color: transparent;
}
.cursor-ring #cursorLabel {
  opacity: 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--void);
  font-weight: 600;
  transition: opacity .25s var(--ease);
  white-space: nowrap;
}
.cursor-ring.active #cursorLabel { opacity: 1; }

/* ====== Loader ====== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--void);
  color: var(--ink);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 48px);
}

.loader-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--dim-dark);
  opacity: 0;
  animation: loaderFadeIn .6s var(--ease) .2s forwards;
}

.loader-mid {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-word {
  display: flex;
  overflow: hidden;
  padding-bottom: 0.15em;
  font-size: clamp(2.8rem, 11vw, 8rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.loader-word span {
  display: inline-block;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(105%);
  animation: loaderLetterIn .8s var(--ease) both;
}
.loader-word span:nth-child(1) { animation-delay: .05s; }
.loader-word span:nth-child(2) { animation-delay: .1s; }
.loader-word span:nth-child(3) { animation-delay: .15s; }
.loader-word span:nth-child(4) { animation-delay: .2s; }
.loader-word span:nth-child(5) { animation-delay: .25s; }
.loader-word span:nth-child(6) { animation-delay: .3s; }
.loader-word span:nth-child(7) { animation-delay: .35s; }
@keyframes loaderLetterIn {
  to { transform: translateY(0); }
}

.loader-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: loaderFadeIn .6s var(--ease) .5s forwards;
}
@keyframes loaderFadeIn { to { opacity: 1; } }

.loader-bar {
  flex: 1;
  height: 1px;
  background: var(--line-dark);
  position: relative;
  overflow: hidden;
}
.loader-bar-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-grad);
}
.loader-percent {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  min-width: 3ch;
}

.loader.done { pointer-events: none; }
.loader.done .loader-top,
.loader.done .loader-mid,
.loader.done .loader-bottom { transition: opacity .9s var(--ease-soft); opacity: 0; }

/* blinds reveal */
.blinds {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 1;
}
.blinds span {
  flex: 1;
  background: var(--void);
  transform: translateY(0);
  will-change: transform;
  transition: transform 1.05s var(--ease-soft);
}
.blinds span:nth-child(1) { transition-delay: 0s; }
.blinds span:nth-child(2) { transition-delay: .04s; }
.blinds span:nth-child(3) { transition-delay: .08s; }
.blinds span:nth-child(4) { transition-delay: .12s; }
.blinds span:nth-child(5) { transition-delay: .16s; }
.blinds span:nth-child(6) { transition-delay: .2s; }
.loader.done .blinds span { transform: translateY(-102%); }

/* ====== Nav ====== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(5,6,11,.75), transparent);
  backdrop-filter: blur(6px);
}

.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  z-index: 10;
}
.nav-logo span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a[data-nav]::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-grad);
  transition: width .3s var(--ease);
}
.nav-links a[data-nav]:hover::after,
.nav-links a[data-nav].active::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(244,246,255,.35);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background .3s, color .3s, border-color .3s;
}
.nav-cta:hover { background: var(--accent-grad); color: var(--void); border-color: transparent; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 6px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  width: 100%; height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--void);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-display); color: var(--ink); }
  .nav-links .nav-cta { color: var(--ink); border-color: rgba(244,246,255,.35); }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ====== Magnetic elements ====== */
[data-magnetic] { display: inline-flex; will-change: transform; }
[data-magnetic] span { display: inline-block; will-change: transform; }

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 140px clamp(20px, 5vw, 64px) 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-inner { max-width: 920px; z-index: 1; }

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  margin-bottom: 30px;
}
.hero-title .line { display: block; }
.hero-title .ital {
  font-style: italic;
  font-weight: 400;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* reveal-mask: clip-path wipe reveal for headline lines */
.reveal-mask { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.reveal-mask > span {
  display: inline-block;
  line-height: 1.25;
  transform: translateY(115%);
  transition: transform 1s var(--ease-soft);
}
.reveal-mask.in-view > span { transform: translateY(0); }

.hero-sub {
  max-width: 520px;
  color: var(--dim);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform .3s var(--ease), filter .3s, border-color .3s;
}
.btn-primary { background: var(--accent-grad); color: var(--void); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-hint span {
  width: 1px;
  height: 40px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-hint span::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent-grad);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* generic reveal on scroll (fade+rise) */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ====== Marquee ====== */
.marquee-wrap {
  overflow: hidden;
  background: var(--void);
}
.marquee-band {
  background: rgba(244, 246, 255, 0.04);
  overflow: hidden;
  padding: 22px 0;
  width: 110vw;
  margin-left: -5vw;
  transform: rotate(-1.2deg);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScrollVar var(--marquee-dur, 26s) linear infinite;
  animation-play-state: paused;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 2rem);
  white-space: nowrap;
  padding-right: 0;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* animacja startuje dopiero po JS-owym pomiarze szerokości (po załadowaniu fontów) —
   inaczej doskok czcionki webowej przesuwa punkt pętli i pasek "przeskakuje" */
@keyframes marqueeScrollVar {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-shift, -50%)); }
}

/* ====== Section shared ====== */
section { padding: 140px clamp(20px, 5vw, 64px); position: relative; }
.work { padding-top: 90px; padding-bottom: 70px; }

.section-head { max-width: 680px; margin-bottom: 60px; }
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 16px;
}
.section-head h2, .about-text h2, .contact h2, .clients h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: 16px;
}
.section-desc { color: var(--dim); font-size: 1.05rem; }

/* ====== Orbit scene — video thumbnails scattered among the stars ====== */
.orbit-scene {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: clamp(760px, 90vw, 1000px);
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px dashed var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-ring-1 { width: 46%; aspect-ratio: 1; opacity: .4; animation: orbitSpin 100s linear infinite; }
.orbit-ring-2 { width: 74%; aspect-ratio: 1; opacity: .25; animation: orbitSpin 160s linear infinite reverse; }
@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.planet {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  display: flex;
  flex-direction: column;
  cursor: none;
  opacity: 0;
  transition: opacity 1s var(--ease);
  animation: planetFloat var(--float-dur, 8s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
.planet.in-view { opacity: 1; }
.planet:hover { z-index: 30 !important; }
@keyframes planetFloat {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
  33% { transform: translate(-50%, -50%) translate(6px, -9px); }
  66% { transform: translate(-50%, -50%) translate(-7px, 6px); }
}

.planet-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.7);
}
.planet-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
  pointer-events: none;
}
.planet-inner.is-hover::after {
  border-color: var(--accent-a);
  box-shadow: 0 0 26px rgba(200, 255, 61, .45);
}

.planet-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05) brightness(.94);
  transition: filter .5s var(--ease);
}
.planet-inner.is-hover img { filter: saturate(1.15) contrast(1.05) brightness(1.05); }
.planet.no-image .planet-inner img { display: none; }

.planet-thumb-fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--fallback-grad, #10121e);
}
.planet.no-image .planet-thumb-fallback { display: flex; }

.planet-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.planet-play::after {
  content: '';
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--void);
  margin-left: 3px;
}
.planet-inner.is-hover .planet-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.planet-caption { padding-top: 10px; }
.planet-channel {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planet-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.planet-views { font-size: 0.72rem; color: var(--dim); }

@media (hover: none) {
  .planet-play { opacity: .8; transform: translate(-50%, -50%) scale(.85); }
}

@media (max-width: 700px) {
  .orbit-scene {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 44px;
    max-width: 440px;
  }
  .orbit-ring { display: none; }
  .planet {
    position: static;
    width: 100% !important;
    animation: none;
    opacity: 0;
    transform: translateY(36px) scale(.92);
    transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
  }
  .planet.in-view { opacity: 1; transform: translateY(0) scale(1); }
}

/* ====== About ====== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.about-frame {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  padding: 18px;
}
.about-frame-inner {
  width: 100%; height: 100%;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  color: var(--void);
}
.about-frame-tag {
  position: absolute;
  bottom: -14px; right: 4px;
  background: var(--void);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: 1px solid var(--line);
}
.about-text p { color: var(--dim); line-height: 1.8; margin-bottom: 32px; max-width: 540px; }
.about-stats { display: flex; gap: 56px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--dim); font-size: 0.85rem; margin-top: 6px; }

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-frame { max-width: 260px; margin: 0 auto; }
}

/* ====== Clients ====== */
.clients-marquee-wrap {
  overflow: hidden;
  margin-bottom: 60px;
}
.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(40px, 6vw, 90px);
  animation: marqueeScrollVar var(--marquee-dur, 34s) linear infinite;
  animation-play-state: paused;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  padding: 14px 26px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.client-badge:hover { border-color: rgba(244,246,255,.4); background: rgba(244,246,255,.03); }

.client-avatar {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(244,246,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-avatar-fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--dim);
}
.client-avatar.no-avatar img { display: none; }
.client-avatar.no-avatar .client-avatar-fallback { display: flex; }

.client-info { display: flex; flex-direction: column; line-height: 1.4; }
.client-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink);
}
.client-stat { font-size: 0.76rem; color: var(--dim); }
.client-hint {
  font-size: 1.3rem;
  color: var(--dim);
  transition: transform .3s var(--ease), color .3s;
}
.client-badge:hover .client-hint { transform: rotate(90deg); color: var(--accent-a); }

/* ----- Popup pełnego profilu klienta (dołączony do <body>) ----- */
.client-popup {
  position: fixed;
  top: 0; left: 0;
  width: min(380px, calc(100vw - 24px));
  background: rgba(10, 12, 22, .96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  z-index: 900;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.client-popup.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.client-popup.place-bottom { transform: translateY(-8px) scale(.98); }
.client-popup.place-bottom.visible { transform: translateY(0) scale(1); }

.client-popup-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.client-popup-avatar {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(244,246,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-popup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-popup-avatar.no-avatar img { display: none; }
.client-popup-avatar.no-avatar .client-avatar-fallback { display: flex; font-size: 1.8rem; }
.client-popup-name { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.client-popup-stat { font-size: 0.75rem; color: var(--dim); margin-top: 2px; }
.client-popup-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--dim);
  margin-bottom: 16px;
}
.client-popup-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.client-popup-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  transition: border-color .3s;
}
.client-popup-socials a:hover { border-color: rgba(244,246,255,.4); }
.client-popup-socials svg { width: 15px; height: 15px; }

@media (hover: none) {
  .client-hint { display: none; }
}

/* ====== Social follow (moje kanały — sekcja Kontakt) ====== */
.socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  justify-content: center;
  margin-top: 50px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform .3s var(--ease), opacity .3s;
}
.social-card:hover { transform: translateY(-3px); }
.social-icon {
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-icon svg { width: 100%; height: 100%; }
.social-info { display: flex; flex-direction: column; line-height: 1.3; }
.social-name { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.social-count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}

/* ====== Contact ====== */
.contact { text-align: center; }
.contact-h2 { display: flex; justify-content: center; }
.contact h2 { margin-bottom: 34px; }
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 3rem);
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  transition: border-color .3s, opacity .3s;
}
.contact-email span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-email:hover { border-color: var(--accent-a); opacity: .85; }
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 44px;
}
.contact-socials a { color: var(--dim); font-size: 0.95rem; transition: color .3s; }
.contact-socials a:hover { color: var(--ink); }
.socials-tag { margin-top: 60px; margin-bottom: 0; }

/* ====== Footer ====== */
.footer {
  position: relative;
  padding: 0 clamp(20px, 5vw, 64px) 0;
  overflow-x: hidden;
  border-top: 1px solid var(--line-dark);
}
.footer-giant {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 16vw, 12rem);
  line-height: 1.25;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-dark);
  padding: 30px 0 0;
  user-select: none;
}
.footer-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 42px;
  color: var(--dim-dark);
  font-size: 0.85rem;
  border-top: 1px solid var(--line-dark);
}
.footer-top { color: var(--ink); transition: opacity .3s; }
.footer-top:hover { opacity: .6; }
