/* COSGRAL HOME — dark minimal + globe 3D */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600&family=Stack+Sans+Notch:wght@400;500;600;700&display=swap");

:root {
  --bg: #030303;
  --bg-card: #0a0a0a;
  --ink: #f5f5f5;
  --muted: #888;
  --border: rgba(255,255,255,0.1);
  --accent: #fff;
  --glow: rgba(255, 255, 255, 0.22);
  --font-display: "Stack Sans Notch", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(7rem, 16vw, 13rem);
  --section-gap: clamp(7rem, 16vw, 12rem);
  --bridge-h: clamp(11rem, 24vh, 18rem);
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-nx: 0;
  --pointer-ny: 0;
  --global-tilt-x: 0deg;
  --global-tilt-y: 0deg;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body.home-page {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
html:has(body.home-page) {
  scrollbar-width: none;
}
html:has(body.home-page)::-webkit-scrollbar {
  width: 0;
  height: 0;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

body.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("images/cosgral-agency/approved/charcoal-grain.jpg");
  background-size: 280px;
}

/* AMBIENT — liquid WebGL + cursor blur veil */
.home-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  filter: grayscale(1) contrast(1.04) brightness(0.78);
  background:
    radial-gradient(ellipse 140% 90% at 50% 38%, #161616 0%, #0a0a0a 42%, #030303 100%);
}
.home-ambient__blur {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle 32vmax at var(--pointer-x) var(--pointer-y),
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.04) 30%,
      transparent 65%
    );
  filter: blur(52px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
@media (max-width: 900px) {
  .home-ambient__blur {
    filter: blur(24px);
    opacity: 0.4;
  }
}
.home-ambient__shade {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(3, 3, 3, 0.28);
}
.home-sand {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
html.reduce-motion .home-ambient,
html.reduce-motion .home-ambient__blur,
html.reduce-motion .home-ambient__shade,
html.reduce-motion .home-sand { display: none; }
html.reduce-motion body.home-page { background: var(--bg); }

main { position: relative; z-index: 1; }
main.home-film > .home-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vh, 6rem);
  box-sizing: border-box;
  background: transparent;
  z-index: 1;
}
.home-scene__panel {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 1200px;
  transform-origin: center center;
}
.home-scene.is-visible .home-scene__panel,
.home-scene.is-in-view .home-scene__panel,
.home-scene.is-entered .home-scene__panel {
  will-change: transform, opacity, filter;
}
/* Gdy stepper ustawi is-in-view, panel musi być widoczny mimo inline opacity z GSAP */
.home-scene.is-in-view > .home-scene__panel {
  opacity: 1 !important;
  visibility: visible !important;
}
html.reduce-motion .home-scene__panel {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.home-scene-curtain {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.94) 100%);
}
html.is-shattering .home-scene-curtain,
html.is-sand-stream .home-scene-curtain {
  visibility: visible;
}
.home-cube-portal {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0.68;
}
.home-cube-portal .home-hero__canvas {
  width: 100%;
  height: 100%;
  display: block;
}
html.is-sand-stream .home-cube-portal,
html.is-shattering .home-cube-portal {
  z-index: 4;
  opacity: 1;
  visibility: visible;
}
#uslugi.is-visible.home-scene {
  position: relative;
  z-index: 10;
}
#uslugi.is-visible .home-scene__panel,
#uslugi.is-visible .services-fan__stage {
  position: relative;
  z-index: 11;
}
.services-fan.home-scene .services-fan__head,
.services-fan__meta,
.services-fan__hint {
  position: relative;
  z-index: 5;
}
/* stage stays under sand portal (z:4) — see html.is-sand-stream .home-cube-portal */

.home-thump {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}
.home-thump.is-active {
  opacity: 1;
}
.home-thump__ring {
  position: absolute;
  left: var(--tx, 50%);
  top: var(--ty, 45%);
  width: min(72vmax, 920px);
  height: min(72vmax, 920px);
  margin: 0;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 48px rgba(255, 255, 255, 0.06),
    inset 0 0 80px rgba(255, 255, 255, 0.04);
  transform: scale(0.12);
  opacity: 0;
  will-change: transform, opacity;
}
.home-thump__ring--late {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
}
.home-thump__ring--soft {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 120px rgba(255, 255, 255, 0.03);
}
.home-hero.home-scene {
  padding-block: 0;
  justify-content: stretch;
}
.home-hero .home-scene__panel {
  position: relative;
  min-height: 100dvh;
  justify-content: stretch;
  display: block;
}

/* SHATTER — dedicated cube → sand beat */
.home-shatter.home-scene {
  padding-block: 0;
  justify-content: center;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}
.home-shatter .home-scene__panel {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4rem);
  box-sizing: border-box;
}
.home-shatter__caption {
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 1vw, 0.72rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.home-hero .home-scene__panel {
  position: relative;
  min-height: 100dvh;
  justify-content: stretch;
  display: block;
}
.home-scene [data-enter] {
  will-change: auto;
}
.home-scene.is-visible [data-enter],
.home-scene.is-in-view [data-enter],
.home-scene.is-entered [data-enter] {
  will-change: transform, opacity, filter;
}
html.reduce-motion .home-scene [data-enter] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.site-footer {
  position: relative;
  z-index: 2;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vh, 2.75rem) var(--gutter) clamp(1.75rem, 5vh, 3rem);
}

/* Stopka — bez dublowania audytu z #kontakt */
html.is-footer-step #kontakt,
html.is-footer-step #kontakt.is-footer-handoff {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.is-footer-step .site-footer {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(1.25rem, 3.5vh, 2.5rem);
  padding-bottom: clamp(1.25rem, 3.5vh, 2.5rem);
}

.home-cursor { position: fixed; top: 0; left: 0; z-index: 10001; pointer-events: none; mix-blend-mode: difference; }
.home-cursor__dot { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; transform: translate(var(--cx,0), var(--cy,0)); }
.home-cursor__ring { position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); transform: translate(var(--rx,0), var(--ry,0)); transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease); }
.home-cursor.is-hover .home-cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
html.reduce-motion body.home-page, html.reduce-motion body.home-page * { cursor: auto !important; }
html.reduce-motion .home-cursor { display: none; }

#preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: #000;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#preloader.is-exiting { opacity: 0; }
#preloader.is-done { visibility: hidden; pointer-events: none; opacity: 0; }
html:not(.reduce-motion) body.home-page:not(.is-ready) {
  background: #000;
}
.preloader__inner { text-align: center; width: min(92vw, 320px); }
.preloader__cube-slot {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  overflow: visible;
}
.preloader__cube {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  margin: 0;
  pointer-events: none;
  transform: translate3d(var(--cube-x, 0px), var(--cube-y, 0px), 0)
    rotate(var(--cube-rot, 0deg))
    scale(var(--cube-scale, 1));
  opacity: var(--cube-opacity, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
#preloader.is-flying .preloader__cube,
#preloader.is-settled .preloader__cube {
  opacity: var(--cube-opacity, 1);
}
.preloader__bar {
  width: 100%;
  height: 2px;
  margin: 1.35rem auto 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.preloader__bar-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), #fff);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.preloader__label {
  display: none !important;
}

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  mix-blend-mode: difference;
}
.site-nav__logo {
  display: inline-flex;
}
.site-nav__logo-img { width: 48px; height: auto; }
.site-nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.lang-switch button[aria-pressed="true"] { opacity: 1; }
.site-nav__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav__toggle-bars { display: flex; flex-direction: column; gap: 5px; }
.site-nav__toggle-bars span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.site-nav.is-open .site-nav__toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-nav.is-open .site-nav__toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-nav.is-open .site-nav__toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 498;
  pointer-events: none;
  visibility: hidden;
}
.nav-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}
.nav-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.88);
  backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  cursor: pointer;
}
.nav-overlay.is-open .nav-overlay__backdrop {
  opacity: 1;
}
.nav-overlay__stage {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 270px;
  height: 270px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  --menu-face-size: 270px;
}
.nav-overlay__links {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
}
.nav-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 78%;
  height: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}
.nav-overlay__list li {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-overlay__list a {
  position: relative;
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: calc(var(--menu-face-size) * 0.104);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: calc(var(--menu-face-size) * 0.02) 0;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.72);
  opacity: 0;
  transform: scale(1);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  transition: transform 0.28s var(--ease), color 0.25s var(--ease);
}
.nav-overlay__list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  transition: width 0.28s var(--ease), opacity 0.25s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.nav-overlay__list a.is-hovered,
.nav-overlay__list a:hover,
.nav-overlay__list a:focus-visible {
  color: #fff;
  transform: scale(1.06);
  outline: none;
}
.nav-overlay__list a.is-hovered::after,
.nav-overlay__list a:hover::after,
.nav-overlay__list a:focus-visible::after {
  width: 52%;
  opacity: 1;
}
.nav-overlay__label {
  display: inline-block;
}
.nav-overlay__char {
  display: inline-block;
}
.nav-overlay.is-open .nav-overlay__list a {
  pointer-events: auto;
}
body.is-nav-menu-open .home-cube-portal {
  z-index: 500;
  opacity: 1 !important;
  visibility: visible !important;
}
body.is-nav-menu-open .home-cube-portal .home-hero__canvas {
  filter: brightness(0.58) saturate(0.82);
}
body.is-nav-menu-open .home-scroll-rail {
  opacity: 0;
  pointer-events: none;
}
html.reduce-motion .nav-overlay__list a {
  opacity: 1;
  transform: none;
  clip-path: none;
  pointer-events: auto;
}
html.reduce-motion .nav-overlay__char {
  opacity: 1;
  transform: none;
  filter: none;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.75rem; border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: scale(1.04); border-color: rgba(255,255,255,0.35); }
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { background: #ddd; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

/* HERO */
.home-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.home-hero__globe-wrap { display: none; }
.home-hero__video { display: none; }
.home-hero__canvas { width: 100%; height: 100%; display: block; }
.home-hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: transparent;
}
.home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  pointer-events: none;
}
.home-hero__title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.08em, 1.2vw, 0.22em);
  width: 100%;
  max-width: calc(100vw - 2 * var(--gutter));
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, calc((100vw - 2 * var(--gutter)) / 8), calc((100vw - 2 * var(--gutter)) / 8));
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-hero__letter {
  display: inline-block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(1.04);
  transform-origin: center bottom;
  filter: blur(14px);
  padding-inline: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 0 rgba(255, 255, 255, 0),
    0 8px 32px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity, filter, letter-spacing;
}
body.home-page.is-hero-intro-active .home-hero__letter,
body.home-page.is-hero-intro-done .home-hero__letter {
  visibility: visible;
}
.home-hero__tagline {
  margin: clamp(0.75rem, 2vw, 1.25rem) auto 0;
  max-width: min(36rem, calc(100vw - 2 * var(--gutter)));
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 1.1vw, 0.78rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
}
body.home-page.is-hero-intro-active .home-hero__tagline,
body.home-page.is-hero-intro-done .home-hero__tagline {
  visibility: visible;
}
.home-hero__title.is-revealed .home-hero__letter {
  animation: hero-letter-breathe 7s ease-in-out infinite;
}
.home-hero__title.is-revealed .home-hero__letter:nth-child(1) { animation-delay: 0s; }
.home-hero__title.is-revealed .home-hero__letter:nth-child(2) { animation-delay: 0.12s; }
.home-hero__title.is-revealed .home-hero__letter:nth-child(3) { animation-delay: 0.24s; }
.home-hero__title.is-revealed .home-hero__letter:nth-child(4) { animation-delay: 0.36s; }
.home-hero__title.is-revealed .home-hero__letter:nth-child(5) { animation-delay: 0.48s; }
.home-hero__title.is-revealed .home-hero__letter:nth-child(6) { animation-delay: 0.6s; }
.home-hero__title.is-revealed .home-hero__letter:nth-child(7) { animation-delay: 0.72s; }
@keyframes hero-letter-breathe {
  0%, 100% {
    text-shadow:
      0 0 24px rgba(255, 255, 255, 0.08),
      0 8px 28px rgba(0, 0, 0, 0.45);
    filter: brightness(1);
  }
  50% {
    text-shadow:
      0 0 36px rgba(255, 255, 255, 0.18),
      0 10px 32px rgba(0, 0, 0, 0.5);
    filter: brightness(1.08);
  }
}
.home-hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0;
  pointer-events: auto;
}
.home-hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* SERVICES FAN */
/* SERVICES FAN */
.services-fan.is-services-rising {
  /* legacy class cleared by JS — keep inert */
}
.services-fan.home-scene {
  overflow: visible !important;
  justify-content: flex-start !important;
  padding-block: clamp(4.5rem, 6.5vh, 5.25rem) 1rem;
  min-height: 100dvh;
}
.services-fan .home-scene__panel {
  overflow: visible;
  position: relative;
  flex: none !important;
  justify-content: flex-start !important;
  min-height: 0;
}
.services-fan.home-scene .services-fan__head,
.services-fan__meta,
.services-fan__hint {
  position: relative;
  z-index: 5;
}
.services-fan.home-scene .services-fan__stage {
  position: relative;
  z-index: 2;
  height: clamp(440px, 62vh, 620px);
  margin-block: 0.5rem 0;
  perspective: 1600px;
  touch-action: pan-y pinch-zoom;
  cursor: default;
  overflow: visible;
}
.services-fan.home-scene .services-fan__head { margin-bottom: 0.35rem; }

/* Pulsujące podpowiedzi kliknięcia — 3 s po wejściu w sekcję */
.services-fan__tap-pulse {
  position: absolute;
  top: 50%;
  z-index: 20;
  translate: 0 -50%;
  width: clamp(68px, 11vw, 104px);
  height: clamp(68px, 11vw, 104px);
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.services-fan__stage.is-tap-hint .services-fan__tap-pulse {
  opacity: 1;
  visibility: visible;
}
.services-fan__tap-pulse--prev { left: clamp(0.35rem, 2.5vw, 1.5rem); }
.services-fan__tap-pulse--next { right: clamp(0.35rem, 2.5vw, 1.5rem); }
.services-fan__tap-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.42);
  animation: fan-tap-pulse-ring 1.15s ease-out infinite;
}
.services-fan__tap-pulse-ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fan-tap-pulse-ring 1.15s ease-out 0.35s infinite;
}
.services-fan__tap-pulse-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  animation: fan-tap-pulse-icon 1.15s ease-in-out infinite;
}
@keyframes fan-tap-pulse-ring {
  0% { transform: scale(0.82); opacity: 0.85; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}
@keyframes fan-tap-pulse-icon {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

.services-fan__hint {
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  translate: -50% 100%;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.75rem;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.services-fan__hint.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
}
.services-fan__hint-gesture {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  animation: fan-hint-nudge 2.4s ease-in-out infinite;
}
.services-fan__hint-text {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  white-space: nowrap;
}
@keyframes fan-hint-nudge {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 0.9; }
}
.services-fan__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}
.services-fan__float-tag { display: none; }
.services-fan__float-tag {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.85;
  will-change: transform, opacity, filter;
}
.services-fan__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  padding-inline: var(--gutter);
  will-change: transform;
}
.services-fan__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.services-fan__counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.services-fan__progress {
  width: min(220px, 42vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.services-fan__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.95));
  border-radius: inherit;
  transition: none;
}
.services-fan__stage {
  position: relative;
  height: clamp(480px, 68vh, 680px);
  margin-block: clamp(0.75rem, 2vw, 1.5rem);
  overflow: visible;
}
.services-fan__carousel {
  position: absolute;
  inset: -6% -4%;
  pointer-events: none;
  overflow: visible;
}
.services-fan__card[data-service-theme="blue"] {
  --service-bg: #061018;
  --service-accent: #1e3f72;
  --service-highlight: #5a8fd4;
}
.services-fan__card[data-service-theme="purple"] {
  --service-bg: #0c0816;
  --service-accent: #4a2f78;
  --service-highlight: #9b6fd4;
}
.services-fan__card[data-service-theme="gold"] {
  --service-bg: #121008;
  --service-accent: #6b5520;
  --service-highlight: #c9a84a;
}
.services-fan__card[data-service-theme="orange"] {
  --service-bg: #120c08;
  --service-accent: #7a4018;
  --service-highlight: #d47a3a;
}
.services-fan__card[data-service-theme="crimson"] {
  --service-bg: #100608;
  --service-accent: #6e1e32;
  --service-highlight: #c44a62;
}
.services-fan__card[data-service-theme="green"] {
  --service-bg: #061210;
  --service-accent: #1a4f42;
  --service-highlight: #4aaf8c;
}
.services-fan__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(255px, 34vw, 340px);
  height: clamp(340px, 44vw, 440px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-card);
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --lx: 50%;
  --ly: 50%;
  transition: box-shadow 0.45s var(--ease), border-color 0.35s var(--ease);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  appearance: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.services-fan__card.is-back {
  pointer-events: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.services-fan__card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.25s var(--ease);
  transform-style: preserve-3d;
}
.services-fan__card.is-active .services-fan__card-media,
.services-fan.is-animating .services-fan__card-media {
  will-change: transform;
}
.services-fan__card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: contrast(1.08) brightness(0.62) saturate(1.15);
  transition: filter 0.45s var(--ease), opacity 0.45s var(--ease);
  transform: scale(1.08);
}
.services-fan__card-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--service-accent) 30%, transparent) 0%,
      color-mix(in srgb, var(--service-bg) 72%, transparent) 52%,
      color-mix(in srgb, var(--service-bg) 90%, transparent) 100%
    ),
    radial-gradient(
      circle 80% at 50% 28%,
      color-mix(in srgb, var(--service-highlight) 18%, transparent) 0%,
      transparent 70%
    );
  mix-blend-mode: color;
  opacity: 0.82;
  transition: opacity 0.45s var(--ease);
}
.services-fan__card-liquid {
  position: absolute;
  inset: -20%;
  z-index: 2;
  background:
    radial-gradient(
      circle 42% at var(--lx) var(--ly),
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.12) 32%,
      transparent 68%
    );
  filter: blur(28px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.services-fan__card.is-cursor-active .services-fan__card-liquid { opacity: 1; }
.services-fan__card.is-hovered .services-fan__card-media video,
.services-fan__card.is-cursor-active .services-fan__card-media video {
  filter: contrast(1.12) brightness(0.78) saturate(1.22);
  opacity: 0.78;
}
.services-fan__card.is-hovered .services-fan__card-tint,
.services-fan__card.is-cursor-active .services-fan__card-tint {
  opacity: 0.7;
}
.services-fan__card:not(.is-active) .services-fan__card-media video {
  filter: contrast(1.05) brightness(0.52) saturate(1.05) blur(4px);
  opacity: 0.38;
  transform: scale(1.06);
}
.services-fan__card:not(.is-active) .services-fan__card-tint {
  opacity: 0.92;
}
.services-fan__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--service-bg) 12%, transparent) 0%,
    color-mix(in srgb, var(--service-bg) 58%, rgba(3, 3, 3, 0.55)) 55%,
    color-mix(in srgb, var(--service-bg) 94%, rgba(3, 3, 3, 0.92)) 100%
  );
  pointer-events: none;
}
.services-fan__num,
.services-fan__name {
  position: relative;
  z-index: 2;
}
.services-fan__card.is-active {
  border-color: color-mix(in srgb, var(--service-highlight) 42%, rgba(255, 255, 255, 0.22));
  box-shadow:
    0 56px 130px rgba(0, 0, 0, 0.82),
    0 0 0 1px color-mix(in srgb, var(--service-highlight) 14%, transparent),
    0 0 52px color-mix(in srgb, var(--service-highlight) 16%, transparent);
}
.services-fan__card.is-active .services-fan__card-media video {
  opacity: 0.94;
  filter: contrast(1.1) brightness(0.82) saturate(1.28);
  transform: scale(1.05);
}
.services-fan__card.is-active .services-fan__card-tint {
  opacity: 0.68;
}
.services-fan__card.is-active .services-fan__name {
  transform: translateZ(36px);
  text-shadow: 0 8px 24px rgba(0,0,0,0.8);
}
.services-fan__card.is-service-panel-source {
  opacity: 0 !important;
  pointer-events: none !important;
}
.services-fan__num {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: auto;
}
.services-fan__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease), text-shadow 0.55s var(--ease);
}
.services-fan__hint {
  text-align: center;
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  animation: hint-pulse 2.8s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 0.75; transform: translateY(-2px); }
}

.home-services__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* REALIZACJE */
.home-work.home-scene {
  padding-block: clamp(5rem, 10dvh, 6.75rem);
  justify-content: center;
}
.home-work .home-scene__panel {
  flex: 1;
  min-height: 0;
  max-height: calc(100dvh - clamp(8.5rem, 17dvh, 11.5rem));
  width: min(var(--container), calc(100% - clamp(1.75rem, 5.5vw, 3.75rem)));
  margin-inline: auto;
  padding-inline: var(--gutter);
  justify-content: center;
  gap: clamp(1.15rem, 2.4dvh, 1.85rem);
}
.home-work .container {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}
.home-work {
  position: relative;
}
.home-work__head {
  margin-bottom: 0;
  flex-shrink: 0;
}
.home-work__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 15ch;
}
.home-work__lead {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.45;
}
.home-work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(0.7rem, 1.5dvh, 1rem);
  flex: 1;
  min-height: 0;
}
.home-work__card {
  position: relative;
  grid-column: span 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s var(--ease);
}
.home-work__card--wide {
  grid-column: 1 / -1;
  min-height: clamp(9.5rem, 19dvh, 14rem);
}
.home-work__card:not(.home-work__card--wide) {
  min-height: clamp(7.5rem, 15dvh, 11.5rem);
}
.home-work__card:hover,
.home-work__card:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
}
.home-work__card.is-cursor-active {
  border-color: rgba(255, 255, 255, 0.32);
}
.home-work__card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.home-work__card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.82) 88%);
}
.home-work__card-media--dim::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 90%);
}
.home-work__card-media video,
.home-work__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.6s var(--ease), filter 0.45s var(--ease);
}
.home-work__card:hover .home-work__card-media video,
.home-work__card:hover .home-work__card-media img,
.home-work__card:focus-visible .home-work__card-media video,
.home-work__card:focus-visible .home-work__card-media img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08);
}
.home-work__card-body {
  position: relative;
  z-index: 1;
  padding: clamp(0.95rem, 2vw, 1.25rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.home-work__card-tag {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.home-work__card-cta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.home-work__footer {
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
}
.home-work__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.88rem;
  text-decoration: none;
}
.glass-btn {
  position: relative;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(245, 240, 235, 0.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s var(--ease-out), filter 0.2s ease;
}
.glass-btn:hover,
.glass-btn:focus-visible {
  transform: scale(1.05);
  filter: brightness(1.15);
}
.glass-btn:active {
  transform: scale(0.98);
  filter: brightness(0.9);
}
@media (max-height: 820px) and (min-width: 901px) {
  .home-work.home-scene {
    padding-block: clamp(4.5rem, 8.5dvh, 5.75rem);
  }
  .home-work .home-scene__panel {
    max-height: calc(100dvh - clamp(8rem, 15dvh, 10.5rem));
    gap: 0.95rem;
  }
  .home-work__title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
  }
  .home-work__lead {
    margin-top: 0.45rem;
    font-size: 0.86rem;
  }
  .home-work__card--wide {
    min-height: clamp(8rem, 15dvh, 11rem);
  }
  .home-work__card:not(.home-work__card--wide) {
    min-height: clamp(6.25rem, 12dvh, 9rem);
  }
}
@media (max-width: 900px) {
  .home-work.home-scene {
    padding-block: clamp(5rem, 10dvh, 6.5rem);
  }
  .home-work .home-scene__panel {
    width: calc(100% - clamp(0.75rem, 2.8vw, 1.15rem));
    max-height: none;
    padding-inline: 0;
    gap: 0.85rem;
  }
  .home-work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: clamp(0.42rem, 1.6vw, 0.62rem);
  }
  .home-work__card,
  .home-work__card--wide {
    grid-column: auto;
    min-height: clamp(7.25rem, 24vw, 9.75rem);
    height: auto;
  }
  .home-work__card--wide {
    grid-column: 1 / -1;
    min-height: clamp(8.25rem, 27vw, 10.75rem);
  }
}

/* PROCESS */
.home-process {
  position: relative;
}
.home-process__lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 38rem;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}
.home-process.home-scene .home-process__steps {
  margin-top: 1.5rem;
  max-width: 920px;
}
@media (min-width: 768px) {
  .home-process.home-scene .home-process__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }
  .home-process.home-scene .home-process__step {
    padding: 1.35rem 0;
  }
}
.home-process__steps { margin-top: clamp(1.5rem, 4vw, 2.75rem); max-width: 720px; }
.home-process__step {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 1;
  transition: opacity 0.4s;
  --lx: 50%;
  --ly: 50%;
  overflow: hidden;
}
.home-process__step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 18rem at var(--lx) var(--ly), rgba(255,255,255,0.06) 0%, transparent 65%);
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.home-process__step.is-cursor-active::before { opacity: 1; }
.home-process__step.is-cursor-active { opacity: 0.75; }
.home-process__step.is-active { opacity: 1; }
.home-process__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 400;
  color: var(--accent);
}
.home-process__step-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: #fff;
}
.home-process__step-body {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
}

/* FAQ */
.home-faq.home-scene {
  display: flex;
  align-items: center;
}
.home-faq.home-scene .home-scene__panel {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.home-faq.home-scene .home-faq__title { margin-bottom: 1.75rem; }
.home-faq.home-scene .faq-item__q { padding: clamp(1rem, 2.5vw, 1.35rem) 0; }
.home-faq__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 400;
}
.faq-item__icon { font-size: 1.25rem; color: var(--muted); transition: transform 0.3s; }
.faq-item[data-open="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-item__a-inner { padding-bottom: 1.25rem; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* CONTACT */
.home-contact {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  overflow: hidden;
  text-align: center;
}
.home-contact.home-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(1rem, 3.5vh, 2.25rem);
  overflow: hidden;
  box-sizing: border-box;
}
.home-contact.home-scene .home-scene__panel {
  position: relative;
  min-height: 0;
  flex: 0 1 auto;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.home-contact.home-scene .home-contact__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  transform: none;
  flex: 0 1 auto;
}
.home-contact__video,
.home-contact__canvas { display: none; }
.home-contact__shade {
  position: absolute; inset: 0;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}
.home-contact__inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.home-contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.45rem;
  text-align: center;
  color: #f7f7f7;
}
.home-contact__lead {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  margin: 0 0 0.45rem;
  line-height: 1.5;
}
.home-contact__social-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.home-contact__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
}
.home-contact__social .footer-social__link {
  width: 2.35rem;
  height: 2.35rem;
  color: rgba(255, 255, 255, 0.88);
}
.home-contact__phones {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.home-contact__phone {
  font-size: 1rem;
  color: #f2f2f2;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}
.home-contact__phone:hover { opacity: 0.75; }
.home-contact .audit-form__row label {
  color: rgba(255, 255, 255, 0.7);
}
.home-contact .audit-form__row input,
.home-contact .audit-form__row textarea {
  color: #f5f5f5;
}
.home-contact .audit-form__row input::placeholder,
.home-contact .audit-form__row textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}
.home-contact .audit-form {
  gap: 0.7rem;
  margin-top: 0;
  padding-bottom: 0.15rem;
}
.home-contact .audit-form__row textarea {
  min-height: 3.85rem;
}
.home-contact .audit-form__submit {
  align-self: center;
  margin-top: 0.2rem;
  margin-bottom: 0.1rem;
}

.audit-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.audit-form__row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.audit-form__row input,
.audit-form__row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.55rem 0;
  outline: none;
}
.audit-form__row input:focus,
.audit-form__row textarea:focus { border-color: rgba(255,255,255,0.5); }
.audit-form__row textarea { min-height: 5rem; resize: vertical; }
.audit-form__submit { align-self: flex-start; margin-top: 0.5rem; }
.audit-form__status { font-size: 0.85rem; color: var(--muted); }
.audit-form__status[data-state="success"] { color: #7fd88f; }
.audit-form__status[data-state="error"] { color: #f88; }
.audit-form__success { text-align: center; padding: clamp(2rem, 8vh, 4rem) 0; min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.audit-form__success[hidden] { display: none !important; }
.home-contact__content[hidden] { display: none !important; }
.audit-form__success-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.audit-form__success-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
  margin-inline: auto;
}

/* FOOTER */
.site-footer__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 92%, rgba(255, 255, 255, 0.07), transparent 58%),
    radial-gradient(ellipse 45% 38% at 92% 18%, rgba(255, 255, 255, 0.04), transparent 52%);
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
html.is-footer-step .site-footer__ambient {
  opacity: 1;
}
.site-footer__rule {
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.site-footer__rule span {
  display: block;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 12%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.08) 88%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}
html.is-footer-step .site-footer__rule span {
  transform: scaleX(1);
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vh, 2.25rem);
}
.footer-col__title {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col a {
  position: relative;
  display: inline-block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.28s var(--ease), transform 0.28s var(--ease);
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.38s var(--ease);
}
.footer-col a:not(.footer-social__link):hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-col a:hover {
  color: #fff;
}
.footer-col a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-social .footer-social__link,
.footer-col--social .footer-social__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  line-height: 0;
  padding: 0;
  position: relative;
  z-index: 3;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  overflow: hidden;
  vertical-align: middle;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.footer-social .footer-social__link::after,
.footer-col--social .footer-social__link::after {
  display: none;
  content: none;
}
.footer-social__link {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  position: relative;
  z-index: 3;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.footer-social .footer-social__link:hover,
.footer-social .footer-social__link:focus-visible,
.footer-col--social .footer-social__link:hover,
.footer-col--social .footer-social__link:focus-visible,
.footer-social__link:hover,
.footer-social__link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.footer-social .footer-social__link svg,
.footer-social__link svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin: 0;
  pointer-events: none;
}
.footer-social .footer-social__link[aria-label="Facebook"] svg,
.footer-social__link[aria-label="Facebook"] svg {
  width: 0.94rem;
  height: 0.94rem;
  transform: translateY(1px);
}
.footer-social .footer-social__link[aria-label="Instagram"] svg,
.footer-social__link[aria-label="Instagram"] svg {
  width: 1rem;
  height: 1rem;
}
.footer-social .footer-social__link[aria-label="LinkedIn"] svg,
.footer-social__link[aria-label="LinkedIn"] svg {
  width: 0.92rem;
  height: 0.92rem;
  transform: translateY(-0.5px);
}
.cosgral-footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6.8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  line-height: 1;
  background: linear-gradient(128deg, #fff 0%, rgba(255, 255, 255, 0.58) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.is-footer-step .cosgral-footer-wordmark {
  animation: footer-wordmark-glow 4.5s ease-in-out infinite;
}
@keyframes footer-wordmark-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.12)); }
}
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(1.25rem, 2.5vh, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s var(--ease);
}
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.85); }

html.is-footer-step .site-footer [data-enter] {
  animation: footer-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
html.is-footer-step .footer-cta { animation-delay: 0.04s; }
html.is-footer-step .footer-col:nth-child(2) { animation-delay: 0.1s; }
html.is-footer-step .footer-col:nth-child(3) { animation-delay: 0.16s; }
html.is-footer-step .footer-col:nth-child(4) { animation-delay: 0.22s; }
html.is-footer-step .footer-col:nth-child(5) { animation-delay: 0.28s; }
html.is-footer-step .footer-bottom { animation-delay: 0.34s; }

.site-footer .footer-social,
.site-footer .footer-social__link {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@keyframes footer-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  will-change: transform, opacity;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] [data-reveal-child] {
  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
  transform-origin: top center;
  will-change: transform, opacity;
}
[data-reveal-group].is-visible [data-reveal-child],
[data-reveal-group] [data-reveal-child].is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.28em;
}
.reveal-word > span {
  display: inline-block;
}
html.reduce-motion [data-reveal],
html.reduce-motion [data-reveal-group] [data-reveal-child] {
  opacity: 1;
  transform: none;
}
html.reduce-motion .reveal-word > span {
  opacity: 1;
  transform: none;
}

/* Prawy suwak sekcji — kropki = pauzy */
.home-scroll-rail {
  position: fixed;
  top: 50%;
  right: clamp(0.55rem, 1.4vw, 1rem);
  z-index: 480;
  translate: 0 -50%;
  width: auto;
  min-width: 14px;
  height: min(72vh, 560px);
  pointer-events: none;
}
.home-scroll-rail__track {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3px;
  left: auto;
  width: 1px;
  translate: 50% 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.14) 12%,
    rgba(255, 255, 255, 0.14) 88%,
    rgba(255, 255, 255, 0.04) 100%
  );
}
.home-scroll-rail__fill {
  position: absolute;
  top: 0;
  right: 3px;
  left: auto;
  width: 2px;
  height: 0;
  translate: 50% 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: height 0.35s var(--ease);
}
.home-scroll-rail__dots {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
}
.home-scroll-rail__item {
  position: relative;
  right: auto;
  top: auto;
  translate: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}
.home-scroll-rail__title {
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  background: none;
  border: 0;
  padding: 0.2rem 0.35rem;
  margin: 0;
  opacity: 0;
  transform: translateX(10px);
  cursor: default;
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    color 0.25s var(--ease);
}
.home-scroll-rail__item.is-title-revealed .home-scroll-rail__title {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
  cursor: pointer;
}
.home-scroll-rail__item.is-title-revealed .home-scroll-rail__title:hover,
.home-scroll-rail__item.is-title-revealed .home-scroll-rail__title:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}
.home-scroll-rail__item.is-title-revealed.is-current .home-scroll-rail__title {
  color: rgba(255, 255, 255, 0.88);
}
.home-scroll-rail__dot {
  pointer-events: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 8, 8, 0.65);
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.home-scroll-rail__dot.is-active {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.15);
}
.home-scroll-rail__dot.is-passed {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}
.home-scroll-rail__dot.is-hold {
  transform: scale(1.55);
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 14px rgba(255, 255, 255, 0.35);
  animation: scroll-rail-hold-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-rail-hold-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 0 10px rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.1), 0 0 18px rgba(255, 255, 255, 0.42); }
}
html.reduce-motion .home-scroll-rail { display: none; }

.home-scroll-rail__arrows {
  display: none !important;
}
.home-scroll-rail__arrow {
  display: none !important;
}

@media (max-width: 900px) {
  :root {
    --rail-safe: clamp(3.55rem, 12.5vw, 4.65rem);
  }

  body.home-page { cursor: auto; }
  .home-cursor { display: none; }
  .home-scroll-rail {
    right: 0.5rem;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
  }
  .home-scroll-rail__body {
    position: relative;
    width: 100%;
    height: min(58vh, 420px);
    flex-shrink: 0;
  }
  .home-scroll-rail__arrows {
    display: none !important;
  }
  .home-scroll-rail__dot {
    width: 6px;
    height: 6px;
  }
  .home-scroll-rail__title {
    font-size: calc(0.54rem - 2px);
    letter-spacing: 0.1em;
    padding: 0.1rem 0.18rem;
  }
  .home-scroll-rail__item {
    gap: 0.35rem;
  }

  .home-scene .container,
  .home-faq.home-scene .home-scene__panel,
  .home-contact.home-scene .home-scene__panel,
  .home-process.home-scene .home-scene__panel,
  .home-work .home-scene__panel,
  .home-work .container {
    padding-right: calc(var(--gutter) + var(--rail-safe));
    box-sizing: border-box;
  }

  #realizacje.home-work.home-scene,
  #proces.home-process.home-scene {
    justify-content: flex-start;
    padding-block: clamp(5.85rem, 13dvh, 7.35rem) clamp(3.25rem, 8dvh, 4.75rem);
  }

  .home-process.home-scene .home-process__steps {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    max-width: none;
  }
  .home-process.home-scene .home-process__step {
    grid-template-columns: 2.75rem 1fr;
    gap: 0.65rem;
    padding: 0.95rem 0;
    align-items: start;
  }
  .home-process__num {
    font-size: clamp(1.35rem, 4.8vw, 1.85rem);
  }
  .home-process__step-title {
    font-size: clamp(0.95rem, 3.1vw, 1.12rem);
    margin-bottom: 0.35rem;
    line-height: 1.2;
  }
  .home-process__step-body {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: none;
  }

  .home-work .home-scene__panel {
    width: calc(100% - clamp(0.75rem, 2.8vw, 1.15rem));
    max-height: none;
    padding-inline: 0;
    gap: 0.85rem;
  }
  .home-work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.42rem, 1.6vw, 0.62rem);
  }
  .home-work__card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    padding: clamp(0.55rem, 2vw, 0.7rem);
  }
  .home-work__card-tag {
    font-size: clamp(0.58rem, 2.35vw, 0.74rem);
    line-height: 1.18;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }
  .home-work__card-cta {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .home-work__card,
  .home-work__card--wide {
    min-height: clamp(7.25rem, 24vw, 9.75rem);
  }
  .home-work__card--wide {
    grid-column: 1 / -1;
    min-height: clamp(8.25rem, 27vw, 10.75rem);
  }
  .home-work__card-media video,
  .home-work__card-media img {
    object-fit: cover;
    object-position: center;
  }

  .home-work__title {
    max-width: none;
    font-size: clamp(1.2rem, 4.6vw, 1.55rem);
    line-height: 1.06;
    hyphens: none;
    overflow-wrap: normal;
    text-wrap: balance;
  }
  .home-work__lead {
    font-size: 0.76rem;
    max-width: none;
    line-height: 1.42;
    hyphens: none;
    text-wrap: balance;
  }

  .home-faq__title {
    font-size: clamp(1.4rem, 4.8vw, 1.8rem);
  }
  .faq-item__q {
    font-size: clamp(0.98rem, 3.2vw, 1.08rem);
    gap: 0.6rem;
    padding-right: 0.15rem;
  }
  .faq-item__icon {
    flex-shrink: 0;
  }

  .home-contact {
    padding-right: var(--gutter);
  }
  .home-contact.home-scene .home-contact__inner {
    width: 100%;
    max-width: min(22rem, calc(100% - 0.5rem));
    margin-inline: auto;
    padding-inline: 0;
    transform: none;
  }
  .home-contact__title {
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    line-height: 1.1;
    padding-inline: 0;
    hyphens: none;
    text-wrap: balance;
  }
  .home-contact__lead {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.45rem;
    padding-inline: 0.15rem;
  }
  .home-contact__social-label {
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
    padding-inline: 0.15rem;
  }
  .home-contact__social {
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }
  .home-contact__social .footer-social__link {
    width: 2rem;
    height: 2rem;
  }
  .home-contact__social .footer-social__link svg {
    width: 15px;
    height: 15px;
  }
  .home-contact__phones {
    gap: 0.3rem;
    margin-bottom: 0.75rem;
  }
  .home-contact__phone {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    max-width: 100%;
  }
  .home-contact .audit-form {
    gap: 0.68rem;
  }
  .home-contact .audit-form__row label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.28rem;
  }
  .home-contact .audit-form__row input,
  .home-contact .audit-form__row textarea {
    font-size: 0.92rem;
    padding: 0.42rem 0;
  }
  .home-contact .audit-form__row textarea {
    min-height: 3.75rem;
  }
  .home-contact .audit-form__submit {
    align-self: center;
    margin-top: 0.25rem;
  }

  html.is-form-focus #kontakt.home-scene {
    overflow: visible;
  }
  html.is-form-focus .home-contact__inner {
    padding-bottom: clamp(10rem, 34vh, 16rem);
  }
  html.is-form-focus .audit-form__row textarea {
    min-height: 6.5rem;
  }

  .home-hero__title {
    font-size: clamp(2rem, calc((100vw - 2 * var(--gutter)) / 9), calc((100vw - 2 * var(--gutter)) / 8));
    letter-spacing: 0.1em;
    gap: 0.06em;
  }
  .services-fan.home-scene .services-fan__stage,
  .services-fan__stage { height: clamp(300px, 44vh, 400px); }
  .services-fan__card { width: 210px; height: 280px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 0.6rem; margin-bottom: 0.55rem; }
  .site-footer {
    overflow: visible;
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: center;
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }
  .site-footer .footer-cta,
  .site-footer .footer-col--social,
  .site-footer .footer-bottom {
    grid-column: 1 / -1;
  }
  .site-footer .footer-cta {
    text-align: center;
    margin-bottom: 0;
  }
  .site-footer .footer-col--social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.6rem;
    padding-top: 0;
  }
  .site-footer .footer-col--social .footer-col__title {
    margin-bottom: 0;
  }
  .site-footer .footer-col__title {
    font-size: 0.58rem;
    letter-spacing: 0.11em;
    margin-bottom: 0.38rem;
  }
  .site-footer .footer-col ul li {
    margin-bottom: 0.28rem;
  }
  .site-footer .footer-col a {
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: nowrap;
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .site-footer .footer-col a[href^="tel:"] {
    font-size: 0.7rem;
    letter-spacing: 0.01em;
  }
  .site-footer .footer-social .footer-social__link,
  .site-footer .footer-col--social .footer-social__link {
    width: 2.2rem;
    height: 2.2rem;
    font-size: inherit;
    white-space: normal;
  }
  .cosgral-footer-wordmark {
    font-size: clamp(1rem, 4.8vw, 1.35rem);
    letter-spacing: 0.03em;
    line-height: 1;
  }
  .footer-social {
    gap: 0.5rem;
    justify-content: center;
  }
  .footer-social__link {
    width: 2.2rem;
    height: 2.2rem;
  }
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem 0.75rem;
    padding-top: 0.55rem;
    font-size: 0.56rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
  html.is-footer-step .site-footer {
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: center;
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }
  .site-footer [data-enter] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
  }
}
@media (max-width: 540px) {
  .services-fan__hint { display: none; }
}

/* Subtle pointer / gyro tilt — never transform scroll-pinned sections or nav-overlay stage */
html.has-global-tilt:not(.reduce-motion) .site-nav,
html.has-global-tilt:not(.reduce-motion) .home-scroll-rail {
  transform: rotateX(var(--global-tilt-x)) rotateY(var(--global-tilt-y));
  transform-origin: 50vw 50vh;
}
/* Footer tilt only on desktop — on mobile it clips the bottom */
@media (min-width: 901px) {
  html.has-global-tilt:not(.reduce-motion) .site-footer {
    transform: rotateX(var(--global-tilt-x)) rotateY(var(--global-tilt-y));
    transform-origin: 50vw 50vh;
  }
}

html.has-global-tilt:not(.reduce-motion) body.home-page .home-scene.is-in-view > .home-scene__panel > * {
  transform: rotateX(var(--global-tilt-x)) rotateY(var(--global-tilt-y));
  transform-origin: 50vw 50vh;
}
@media (max-width: 900px) {
  html.has-global-tilt:not(.reduce-motion) body.home-page .home-scene.is-in-view > .home-scene__panel > * {
    transform: none;
  }
}

body.is-nav-menu-open.is-cube-menu-front .nav-overlay__list a {
  color: rgba(255, 255, 255, 0.97);
  text-shadow:
    0 0 28px rgba(0, 0, 0, 0.95),
    0 2px 18px rgba(0, 0, 0, 0.92),
    0 0 2px rgba(0, 0, 0, 0.85);
}
body.is-nav-menu-open.is-cube-menu-front .nav-overlay__stage {
  filter: drop-shadow(0 0 42px rgba(0, 0, 0, 0.55));
}

html.is-nav-menu-open .nav-overlay__stage {
  transform: translate(-50%, -50%) !important;
}

.nav-overlay__item--services {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav-overlay__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: visible;
  max-height: none;
}
.nav-overlay.is-services-expanded .nav-overlay__sublist {
  display: flex;
  gap: 0;
  margin-top: calc(var(--menu-face-size) * 0.01);
  padding: 0;
}
.nav-overlay__sublist li {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.nav-overlay__sublist a {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: calc(var(--menu-face-size) * 0.104);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
  padding: calc(var(--menu-face-size) * 0.02) 0;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.72);
  opacity: 0;
  clip-path: none;
  pointer-events: none;
  transition: transform 0.28s var(--ease), color 0.25s var(--ease);
}
.nav-overlay.is-services-expanded .nav-overlay__sublist a {
  pointer-events: auto;
}
.nav-overlay__sublist a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  transition: width 0.28s var(--ease), opacity 0.25s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.nav-overlay__sublist a.is-hovered,
.nav-overlay__sublist a:hover,
.nav-overlay__sublist a:focus-visible {
  color: #fff;
  transform: scale(1.06);
  outline: none;
}
.nav-overlay__sublist a.is-hovered::after,
.nav-overlay__sublist a:hover::after,
.nav-overlay__sublist a:focus-visible::after {
  width: 52%;
  opacity: 1;
}
.nav-overlay__list a.is-services-active,
.nav-overlay__list a.is-services-active.is-hovered {
  color: #fff;
}
.nav-overlay.is-services-expanded .nav-overlay__backdrop {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(38px);
}
.nav-overlay.is-services-expanded .nav-overlay__stage {
  height: auto !important;
  min-height: 0;
  max-height: none;
}
.nav-overlay.is-services-expanded .nav-overlay__list {
  width: 86%;
  height: auto;
  min-height: 0;
  justify-content: center;
}
.nav-overlay.is-services-expanded .nav-overlay__list > li:not(.nav-overlay__item--services) {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
.nav-overlay.is-services-expanded .nav-overlay__item--services {
  width: 100%;
  height: auto;
  justify-content: center;
  padding-top: 0;
}
body.is-nav-menu-open.is-nav-services-expanded .home-cube-portal,
body.is-nav-menu-open.is-nav-services-expanded .subpage-cube-portal {
  filter: blur(18px) brightness(0.34) saturate(0.7);
  transition: filter 0.45s var(--ease);
}

/* Mobile gyro permission gate (iOS requires a tap) — home + subpages */
.gyro-enable {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 12000;
  transform: translateX(-50%);
  padding: 0.72rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.82);
  color: #f2f2f2;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: opacity 0.35s var(--ease, ease), transform 0.35s var(--ease, ease);
}
.gyro-enable.is-done {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}
@media (min-width: 901px) and (hover: hover) {
  .gyro-enable {
    display: none !important;
  }
}
