/* ============================================================
   MERIDIAN® — studio site
   Palette: design6 neon digital colors.
   Type: Archivo (grotesque, tight tracking) + Instrument Serif
   italic for accent words.
   ============================================================ */

:root {
  --bg: #030609;
  --bg-2: #07151a;
  --text: #effcff;
  --muted: #a6dce2;
  --faint: rgba(166, 220, 226, 0.42);
  --line: rgba(110, 246, 255, 0.28);
  --accent: #20d7e9;
  --light: #effcff;
  --ink: #001014;
  --ink-muted: rgba(0, 16, 20, 0.64);
  --ink-line: rgba(0, 16, 20, 0.2);
  --cyan: #20d7e9;
  --teal: #00f0c6;
  --green: #7cff8a;
  --magenta: #ff3d9a;
  --sun: #ffb86b;
  --violet: #8a63ff;
  --yellow: #f5d02a;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --font-sans: 'Archivo', -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background:
    radial-gradient(circle at 10% 7%, rgba(138, 99, 255, 0.34), transparent 31rem),
    radial-gradient(circle at 84% 4%, rgba(255, 184, 107, 0.28), transparent 26rem),
    radial-gradient(circle at 54% 44%, rgba(0, 240, 198, 0.18), transparent 34rem),
    linear-gradient(180deg, #020206 0, #051419 48%, #030609 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Film-grain overlay across the whole page */
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* Use the native mouse pointer on every page. */
.cursor { display: none; }

.click-ripple {
  position: fixed;
  z-index: 4000;
  width: 2px;
  height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: click-ripple 0.6s ease-out forwards;
}

@keyframes click-ripple {
  from { width: 2px; height: 2px; opacity: 1; }
  to { width: 80px; height: 80px; opacity: 0; }
}

/* ------------------------------------------------------------
   Wipe transition overlay
   ------------------------------------------------------------ */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
  visibility: hidden;
}
.wipe.is-active { visibility: visible; }
.wipe__panel {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  will-change: transform;
}
.wipe__panel--back { background: linear-gradient(90deg, var(--cyan), var(--teal), var(--sun)); }
.wipe__panel--front {
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wipe__word {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  opacity: 0;
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4vw;
  color: #fff;
  transition: transform 0.38s var(--ease-out), opacity 0.28s ease;
  will-change: transform, opacity;
}
.nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-115%);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.nav__logo-mark {
  width: auto;
  height: 1.15em;
  flex: 0 0 auto;
  margin-right: 0.55rem;
  transition: transform 0.45s var(--ease-out);
}
.nav__logo:hover .nav__logo-mark { transform: rotate(-8deg) scale(1.08); }
.nav__logo-reg { font-size: 0.6em; vertical-align: super; align-self: flex-start; margin-top: -0.15em; }
.nav__actions { display: flex; align-items: center; gap: 0.85rem; }
.nav__links { display: flex; gap: 2.5rem; }
.nav__links .flip { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), 0 4px 18px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.language-toggle span {
  display: grid;
  place-items: center;
  min-width: 2.1rem;
  min-height: 1.65rem;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease-out), color 0.3s ease, transform 0.3s var(--ease-out);
}

.language-toggle .is-active {
  background: #fff;
  color: #071116;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateX(0.02rem);
}

/* Vertical flip link */
.flip { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25; vertical-align: bottom; }
.flip__inner { display: flex; flex-direction: column; transition: transform 0.5s var(--ease-io); }
.flip__row { display: block; height: 1.25em; line-height: 1.25; }
.flip:hover .flip__inner { transform: translateY(-50%); }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  padding: 1.05rem 2.2rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}
.btn:hover { background: transparent; color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--small { min-width: 0; padding: 0.7rem 1.5rem; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--light); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.magnetic__inner { display: inline-block; will-change: transform; }

/* ------------------------------------------------------------
   Section head (index + label + rule)
   ------------------------------------------------------------ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0 4vw;
  margin-bottom: clamp(2rem, 5vh, 4rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head__index { color: var(--accent); }
.section-head__rule { flex: 1; height: 1px; background: var(--line); transform-origin: left; }
.section-head--dark { color: var(--ink-muted); }
.section-head--dark .section-head__rule { background: var(--ink-line); }
.section-head--dark .section-head__index { color: var(--cyan); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* Top padding keeps the content clear of the fixed header (~90px) on short screens,
     where the content is taller than the viewport and would otherwise start at y = 0. */
  padding: 7.5rem 4vw 3rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__waves {
  position: absolute;
  inset: -22%;
  z-index: 3;
  overflow: hidden;
  opacity: 0.72;
  transform: rotate(-8deg) scale(1.12);
}
.hero__wave {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 42%;
  border-radius: 48% 52% 44% 56%;
  background: linear-gradient(90deg, rgba(0, 171, 208, 0), rgba(12, 106, 207, 0.48) 34%, rgba(0, 212, 240, 0.3) 58%, rgba(138, 99, 255, 0));
  filter: blur(34px);
  will-change: transform;
  animation: hero-wave-drift 15s ease-in-out infinite alternate;
}
.hero__wave::after {
  content: "";
  position: absolute;
  inset: 18% 4%;
  border-radius: inherit;
  border-top: 1px solid rgba(110, 246, 255, 0.22);
  border-bottom: 1px solid rgba(0, 240, 198, 0.12);
  filter: blur(2px);
}
.hero__wave--one {
  top: 4%;
  transform: translate3d(-4%, 4%, 0) rotate(-8deg) scaleY(0.82);
  animation-delay: -2s;
}
.hero__wave--two {
  top: 31%;
  opacity: 0.72;
  transform: translate3d(5%, -3%, 0) rotate(7deg) scaleY(0.68);
  animation-duration: 19s;
  animation-delay: -8s;
}
.hero__wave--three {
  top: 62%;
  opacity: 0.54;
  transform: translate3d(-2%, 6%, 0) rotate(-5deg) scaleY(0.58);
  animation-duration: 22s;
  animation-delay: -13s;
}
@keyframes hero-wave-drift {
  0% {
    transform: translate3d(-7%, 5%, 0) rotate(-9deg) scaleY(0.72);
  }
  50% {
    transform: translate3d(7%, -4%, 0) rotate(8deg) scaleY(1.08);
  }
  100% {
    transform: translate3d(-4%, 6%, 0) rotate(-6deg) scaleY(0.82);
  }
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  opacity: 0.08;
  will-change: transform;
}
.hero__project-wall {
  --wall-x: 0px;
  --wall-y: 0px;
  --wall-scroll-y: 0px;
  position: absolute;
  inset: -16vh -12vw;
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  grid-auto-rows: minmax(180px, 23vh);
  gap: clamp(0.75rem, 1.6vw, 1.3rem);
  opacity: 0.58;
  filter: saturate(0.82) contrast(1.04);
  transform: translate3d(var(--wall-x), calc(var(--wall-y) + var(--wall-scroll-y)), 0) rotate(-1.4deg) scale(1.08);
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero__project-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.36);
}
.hero__project-tile--wide { grid-column: span 2; }
.hero__project-tile--tall { grid-row: span 2; }
.hero__project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transform: scale(1.04);
}
.hero__project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
.hero__bg-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(124, 255, 138, 0.14), transparent 31rem),
    radial-gradient(circle at 80% 12%, rgba(32, 215, 233, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.74)),
    linear-gradient(180deg, rgba(3, 6, 9, 0.82), rgba(3, 6, 9, 0.58) 42%, rgba(3, 6, 9, 0.92));
}
.hero__animated-mark {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 1;
  width: min(123vw, 1380px);
  height: auto; /* the width/height attributes only reserve the aspect ratio */
  max-width: none;
  opacity: 0.2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: opacity;
}
.hero__inner,
.hero__meta {
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3vh;
}
.hero__eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .hero__wave { animation: none; }
}
.hero__title {
  max-width: 14ch;
  font-size: clamp(3.2rem, 11.5vw, 11.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__kicker {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--cyan);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.18em;
}
.hero__title-main { display: block; }
.hero__title-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--light);
  text-stroke: 1.5px var(--light);
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(100deg, #20d7e9 0%, #5df29a 46%, #ffcf70 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__title em .char {
  color: transparent;
  background: linear-gradient(100deg, #20d7e9 0%, #5df29a 46%, #ffcf70 100%);
  background-size: 700% 100%;
  background-position: calc((var(--char-position, 0)) * 16.667%) 0;
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__title em .char:nth-child(1) { --char-position: 0; }
.hero__title em .char:nth-child(2) { --char-position: 1; }
.hero__title em .char:nth-child(3) { --char-position: 2; }
.hero__title em .char:nth-child(4) { --char-position: 3; }
.hero__title em .char:nth-child(5) { --char-position: 4; }
.hero__title em .char:nth-child(6) { --char-position: 5; }
.hero__title em .char:nth-child(7) { --char-position: 6; }
.hero__title .line { overflow: hidden; }
.hero__title .char { display: inline-block; }
.hero__sub {
  max-width: 74ch;
  margin-top: 4vh;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--muted);
}
.hero__sub strong{
  color: var(--light);
}
.hero__cta { display: flex; gap: 1rem; margin-top: 4vh; flex-wrap: wrap; }
.hero__meta {
  position: absolute;
  left: 4vw; right: 4vw; bottom: 3.5vh;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero__meta-line { flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.hero__meta-line-fill {
  display: block; width: 40%; height: 100%;
  background: var(--faint);
  animation: scan 3s var(--ease-io) infinite;
}
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(350%); } }

/* ------------------------------------------------------------
   Offer
   ------------------------------------------------------------ */
.offer {
  background: #fff;
  color: #050505;
  padding: clamp(5rem, 11vh, 8rem) 4vw clamp(5.5rem, 12vh, 8.5rem);
}
.offer__top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: clamp(2.4rem, 6vh, 4.2rem);
}
.offer__title {
  margin: 0 0 1.8rem;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.offer__what {
  display: inline-block;
  transform-origin: 0 100%;
}
.offer__title span {
  display: inline-block;
  color:var(--accent);
}
.offer__title .offer__what {
  color: #050505;
}
.offer__all,
.offer-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1.1rem;
  border: 1px solid #171717;
  border-radius: 999px;
  color: #171717;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.offer__all {
  background: #171717;
  color: #fff;
}
.offer__arrows {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 0.1rem;
}
.offer__arrows span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4e4e4;
  color: #202020;
  font-size: 1.2rem;
}
.offer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
.offer-card {
  min-width: 0;
  position: relative;
  z-index: 1;
  transform-origin: 50% 50%;
}
.offer-card__media {
  position: relative;
  aspect-ratio: 1 / 1.32;
  overflow: hidden;
  border-radius: 8px;
  background: #e9e9e9;
  transform-origin: 50% 100%;
  will-change: transform, clip-path;
}
.offer-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.offer-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--offer-tint, transparent);
  mix-blend-mode: screen;
  opacity: 0.45;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.offer-card__media--webdesign { --offer-tint: linear-gradient(135deg, rgba(138, 99, 255, 0.22), rgba(32, 215, 233, 0.42)); }
.offer-card__media--seo { --offer-tint: linear-gradient(135deg, rgba(32, 215, 233, 0.2), rgba(27, 140, 255, 0.6)); }
.offer-card__media--development { --offer-tint: linear-gradient(135deg, rgba(0, 240, 198, 0.58), rgba(124, 255, 138, 0.28)); }
.offer-card__media--ai { --offer-tint: linear-gradient(135deg, rgba(255, 61, 154, 0.42), rgba(255, 184, 107, 0.24)); }
.offer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: 50% 50%;
  will-change: transform;
}
.offer-card:hover,
.offer-card:focus-within {
  z-index: 4;
}
.offer-card:hover .offer-card__media::before,
.offer-card:focus-within .offer-card__media::before {
  opacity: 1;
}
.offer-card:hover .offer-card__media::after,
.offer-card:focus-within .offer-card__media::after {
  opacity: 0.62;
}
.offer-card h3 {
  margin-top: 1.1rem;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}
.offer-card p {
  max-width: 34ch;
  margin: 0.85rem 0 1rem;
  color: #151515;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.35;
}

/* ------------------------------------------------------------
   Why us
   ------------------------------------------------------------ */
.why-us {
  --why-mx: 0px;
  --why-my: 0px;
  position: relative;
  z-index: 3;
  isolation: isolate;
  /* Exactly one screen: the section is pinned while its reveal plays (main.js initWhyUs). */
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #bffcff 0%, #38d7eb 48%, #1b8cff 100%);
  color: #001014;
}
.why-us__noise {
  position: absolute;
  inset: 0;
  opacity: 0.86;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 86% 20%, rgba(124, 255, 138, 0.32), transparent 30rem),
    linear-gradient(115deg, transparent 0 55%, rgba(255, 255, 255, 0.16) 55% 55.3%, transparent 55.6%);
}
.why-us__beam {
  position: absolute;
  left: 54%;
  top: 50%;
  z-index: 1;
  width: min(9vw, 130px);
  height: 145vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(191, 252, 255, 0.44), rgba(255, 255, 255, 0.2) 40%, rgba(32, 215, 233, 0.16) 65%, transparent);
  will-change: transform, opacity;
  opacity: 0.52;
  transform: translate(-50%, -50%) rotate(22deg);
  transform-origin: 50% 50%;
  animation: why-beam-pulse 5.8s ease-in-out infinite;
  pointer-events: none;
}
.why-us__kicker {
  position: absolute;
  top: clamp(3rem, 9vh, 5.5rem);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(0, 16, 20, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.why-us__title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(92vw, 1200px);
  max-width: 11ch;
  text-align: center;
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: rgba(0, 16, 20, 0.9);
  transform: translate(-50%, -50%);
}
.why-us__title-accent {
  color: rgb(3, 255, 251);
  -webkit-text-stroke: 1.5px #00ffff;
  text-stroke: 2.5px #cdfefa;
  text-shadow: 0 0 22px rgba(5, 203, 243, 0.2);
}
.why-us__title .char {
  display: inline-block;
  transform-origin: 50% 50%;
}
.why-us__center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(61vw, 774px);
  display: grid;
  gap: clamp(0.8rem, 1.6vw, 1.35rem);
  place-items: center;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  will-change: transform, opacity;
}
.why-us__center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 124%;
  aspect-ratio: 1.55;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(191, 252, 255, 0.5), rgba(32, 215, 233, 0.22) 35%, rgba(0, 240, 198, 0.1) 62%, transparent);
  opacity: 0.9;
  transform: translate(-50%, -50%);
  animation: why-logo-halo 4.8s ease-in-out infinite;
}
.why-us__center::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 76%;
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(191, 252, 255, 0.5), rgba(191, 252, 255, 0.18) 55%, transparent);
  transform: translate(-50%, -50%);
  animation: why-logo-core 3.9s ease-in-out infinite;
}
.why-us__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 86%;
  height: auto; /* the width/height attributes only reserve the aspect ratio */
  opacity: 0.96;
  filter: drop-shadow(0 0 10px rgba(0, 171, 208, 0.72))
    drop-shadow(0 0 40px rgba(0, 138, 168, 0.5));
}
.why-us__tagline {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  margin: 0;
  color: rgba(0, 60, 75, 0.78);
  font-size: clamp(1.78rem, 1vw, 1rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
@keyframes why-logo-halo {
  0%, 100% {
    opacity: 0.68;
    transform: translate(-50%, -50%) scale(0.94);
  }
  50% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(1.06);
  }
}
@keyframes why-logo-core {
  0%, 100% {
    opacity: 0.14;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
@keyframes why-beam-pulse {
  0%, 100% { opacity: 0.34; transform: translate(-50%, -50%) rotate(22deg) scaleX(0.82); }
  50% { opacity: 0.62; transform: translate(-50%, -50%) rotate(22deg) scaleX(1.04); }
}
.why-card {
  --why-drift-x: 0px;
  --why-entry-y: 0px;
  --why-drift-y: 0px;
  --why-drift-r: 0deg;
  --why-float-x: 0px;
  --why-float-y: 0px;
  --why-float-r: 0deg;
  --why-card-scale: 1;
  position: absolute;
  z-index: 4;
  width: clamp(230px, 27vw, 390px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 2vw, 2rem);
  border: 1px solid rgba(239, 252, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.14), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(0, 160, 185, 0.1),
    rgba(225, 250, 252, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 22px 70px rgba(0, 76, 91, 0.1);
  opacity: 1;
  transform: translate3d(
    calc(var(--why-drift-x) + var(--why-float-x) + (var(--why-mx) * var(--depth) / 100)),
    calc(var(--why-entry-y) + var(--why-drift-y) + var(--why-float-y) + (var(--why-my) * var(--depth) / 100)),
    0
  ) rotate(calc(var(--why-drift-r) + var(--why-float-r))) scale(var(--why-card-scale));
  will-change: transform, opacity;
}
.why-card::after {
  content: "";
  position: absolute;
  right: clamp(1.1rem, 2vw, 1.9rem);
  top: clamp(1.1rem, 2vw, 1.9rem);
  width: clamp(48px, 5.8vw, 82px);
  aspect-ratio: 1;
  opacity: 0.76;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}
.why-card--one { left: 9vw; top: 7vh; }
.why-card--two { right: 8vw; top: 11vh; }
.why-card--three { left: 7vw; bottom: 8vh; }
.why-card--four { right: 10vw; bottom: 7vh; }
.why-card--one::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23004c5b' stroke-width='2'%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3Ccircle cx='60' cy='60' r='28'/%3E%3Ccircle cx='60' cy='60' r='44'/%3E%3Ccircle cx='60' cy='60' r='58'/%3E%3C/g%3E%3C/svg%3E");
}
.why-card--two::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23004c5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M45 24 18 60l27 36'/%3E%3Cpath d='M75 24l27 36-27 36'/%3E%3Cpath d='M65 22 53 98' opacity='.72'/%3E%3C/g%3E%3C/svg%3E");
}
.why-card--three::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23004c5b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 90h76' opacity='.72'/%3E%3Cpath d='M32 84V66'/%3E%3Cpath d='M52 84V48'/%3E%3Cpath d='M72 84V34'/%3E%3Cpath d='M28 58c17 0 28-22 44-22 9 0 14 6 20 13'/%3E%3Cpath d='M92 49V32H75'/%3E%3C/g%3E%3C/svg%3E");
}
.why-card--four::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23004c5b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='60' cy='60' r='13'/%3E%3Ccircle cx='30' cy='34' r='8'/%3E%3Ccircle cx='91' cy='38' r='8'/%3E%3Ccircle cx='34' cy='88' r='8'/%3E%3Ccircle cx='88' cy='86' r='8'/%3E%3Cpath d='M38 39 51 52M82 43 69 53M43 83 51 69M78 79 69 68'/%3E%3Cpath d='M60 28v18M60 74v19' opacity='.7'/%3E%3C/g%3E%3C/svg%3E");
}
.why-card__num {
  color: rgba(0, 76, 91, 0.62);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.why-card h3 {
  max-width: 11ch;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: rgba(0, 16, 20, 0.86);
}
.why-card p {
  max-width: 32ch;
  color: rgba(0, 16, 20, 0.62);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.35;
}

/* ------------------------------------------------------------
   Intro
   ------------------------------------------------------------ */
.intro {
  padding: clamp(8rem, 18vh, 14rem) 0;
  background:
    linear-gradient(180deg, rgba(3, 6, 9, 0.3), rgba(3, 6, 9, 0.76)),
    url("../assets/header-aurora-waves.png") center / cover no-repeat;
}
.intro__statement {
  padding: 0 4vw;
  max-width: 42ch;
  color: rgba(0, 8, 12, 0.9);
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.intro__statement strong {
  color: inherit;
} 
.intro__statement .word {
  display: inline-block;
  color: rgba(100, 100, 100, 0.9);
  text-shadow: 0 0 0 rgba(32, 215, 233, 0);
  transition: color 0.22s ease, text-shadow 0.22s ease;
}
.intro__statement .studio-reveal-word {
  display: inline-block;
  color: rgba(90, 90, 90, 0.9);
  text-shadow: 0 0 0 rgba(32, 215, 233, 0);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.intro__statement .studio-reveal-word.is-revealed {
  color: rgba(245, 253, 255, 1);
  text-shadow: 0 0 18px rgba(32, 215, 233, 0.22);
}
.intro__statement strong .studio-reveal-word.is-revealed {
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(245, 208, 42, 0.24);
}
.intro__statement em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: inherit;
}
.intro__statement .line { overflow: hidden; }
.intro__aside {
  margin: 8vh 4vw 0 auto;
  max-width: 40ch;
  display: grid;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.intro__aside-sig {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

/* ------------------------------------------------------------
   Stats (pinned, with giant background reel)
   ------------------------------------------------------------ */
.stats {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vh, 4.5rem) 0 0;
  background: var(--bg-2);
  overflow: hidden;
}
.stats__reel {
  position: absolute;
  top: 50%; left: 4vw;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  font-size: clamp(7rem, 22vw, 22rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(110, 246, 255, 0.12);
  pointer-events: none;
  will-change: transform;
}
.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 4vw;
}
.stat { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.stat__value {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__suffix { color: var(--accent); font-size: 0.55em; margin-left: 0.1em; }
.stat__label {
  margin-top: 0.9rem;
  max-width: 22ch;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Marquee
   ------------------------------------------------------------ */
.marquee {
  margin-top: clamp(4rem, 10vh, 8rem);
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee--slow .marquee__track { animation-duration: 38s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee__track span:hover { color: var(--text); }
.marquee__sep { color: var(--accent) !important; font-size: 0.8em !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------
   Work slider
   ------------------------------------------------------------ */
.work { padding: clamp(8rem, 16vh, 13rem) 0; }
.work__title {
  padding: 0 4vw;
  margin-bottom: clamp(3rem, 7vh, 5rem);
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-transform: uppercase;
}
.work__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--accent); }
.work__title-accent {
  display: inline-block;
  padding: 0 0.14em 0.06em;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
}
.work__title-yellow {
  color: var(--yellow);
}
.work__title .line { overflow: hidden; }
.work__title .word { display: inline-block; }

.slider {
  position: relative;
  overflow: hidden;
  outline: none;
  touch-action: pan-y; /* vertical page scroll still works on touch */
}
@media (hover: hover) and (pointer: fine) {
  .slider { cursor: grab; }
  .slider:active { cursor: grabbing; }
}
.slider__track {
  display: flex;
  gap: 2.5vw;
  padding: 0 15vw; /* peek: partial prev/next slides */
  will-change: transform;
}
.slide {
  flex: 0 0 auto;
  width: min(62vw, 900px);
  transform: scale(0.92);
  filter: brightness(0.5);
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  will-change: transform;
  user-select: none;
}
.slide.is-active { transform: scale(1); filter: brightness(1); }
.slide__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
}
.slide__img {
  position: absolute;
  top: 0; left: -10%;
  width: 120%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.slide__meta {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.slide__index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.slide__title {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.slide__tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.slider__hud {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 4vw 0;
}
.slider__counter {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.slider__counter-sep { margin: 0 0.5em; color: var(--faint); }
.slider__progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.slider__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--sun));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.slider__hint {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------
   Horizontal portfolio gallery (pinned, scroll-scrubbed)
   ------------------------------------------------------------ */
.h-gallery {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.h-gallery .section-head {
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.h-gallery .work__title {
  padding-top: clamp(3rem, 7vh, 5rem);
}
.h-gallery__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 4vw;
  padding: 0 8vw;
  width: max-content; /* total width exceeds viewport — that's the travel distance */
  will-change: transform;
}
.h-gallery__slide {
  flex: 0 0 auto;
  width: 70vw;
  max-width: 980px;
  will-change: transform;
}
.h-gallery__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
}
.h-gallery__shade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.h-gallery__media img { width: 100%; height: 100%; object-fit: cover; }
.h-gallery__meta {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.h-gallery__index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.h-gallery__title {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h-gallery__tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.h-gallery__hud {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 4vw 0;
}

/* ------------------------------------------------------------
   Partners
   ------------------------------------------------------------ */
.partners {
  position: relative;
  z-index: 1; /* slides up and covers the pinned gallery */
  background: var(--bg);
  padding: clamp(6rem, 12vh, 10rem) 0 clamp(8rem, 16vh, 13rem);
}
.partners__label {
  padding: 0 4vw 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.partners .marquee { margin-top: 0; }

/* ------------------------------------------------------------
   Contact (violet cennik gradient)
   ------------------------------------------------------------ */
.contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 7rem);
  background: linear-gradient(135deg, #1c103f 0%, #8a63ff 46%, #ff5bb7 100%);
  color: #fff;
  padding: clamp(7rem, 14vh, 11rem) 4vw;
}
.contact__title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}
.contact__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; color: #fff; }
.contact__title .line { overflow: hidden; }
.contact__title .word { display: inline-block; }
.contact__intro {
  min-width: 0;
}
.contact__quick {
  display: grid;
  gap: 0;
  width: min(100%, 560px);
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
}
.contact__quick-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  opacity: 0.4;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.contact__quick-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}
.contact__quick-link:hover,
.contact__quick-link:focus-visible {
  opacity: 1;
  transform: translateX(10px);
  border-color: rgba(255, 255, 255, 0.46);
}
.contact__quick-link:hover::after,
.contact__quick-link:focus-visible::after {
  transform: scaleX(1);
}
.contact__quick-value {
  min-width: 0;
  color: #fff;
  font-size: clamp(1.12rem, 2vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.contact__quick-action {
  flex: 0 0 auto;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 900;
  line-height: 1;
  transition: transform 0.35s var(--ease-out), color 0.35s ease;
}
.contact__quick-link:hover .contact__quick-action,
.contact__quick-link:focus-visible .contact__quick-action {
  transform: translate(4px, -4px);
  color: var(--yellow);
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  width: 100%;
  max-width: 860px;
  justify-self: end;
}
.field { display: flex; flex-direction: column; gap: 0.7rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1.05rem;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.62); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: #fff; }
.contact__submit { flex-direction: row; align-items: center; gap: 2rem; }
.contact__done { font-size: 0.9rem; color: var(--green); font-weight: 600; }

/* Contact forms (main.js initForm, _app/controllers/web/forms.cfm) */
.form-status--error { color: #ff6b7a; }
.field__error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff6b7a;
}
.is-invalid input,
.is-invalid select,
.is-invalid textarea { border-color: #ff6b7a !important; }
[data-contact-form].is-sending [type="submit"] { opacity: 0.55; cursor: progress; }
/* Honeypot: kept in the layout for bots, out of sight and reach for people */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(5rem, 10vh, 8rem) 4vw 3rem;
}
.footer__word {
  position: relative;
  display: block;
  font-size: clamp(4rem, 16vw, 17rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(239, 252, 255, 0.2);
  text-shadow: 0 0 36px rgba(32, 215, 233, 0.12);
  opacity: 1;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.footer__word:hover {
  color: rgba(32, 215, 233, 0.34);
  text-shadow: 0 0 42px rgba(32, 215, 233, 0.2);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__socials {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}
.footer__social {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 252, 255, 0.18);
  border-radius: 50%;
  color: rgba(239, 252, 255, 0.74);
  background: rgba(239, 252, 255, 0.04);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.footer__social svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__social:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
}
.footer__social[aria-label="Facebook"] svg,
.footer__social[aria-label="LinkedIn"] svg {
  fill: currentColor;
  stroke: none;
}

/* ------------------------------------------------------------
   Bottom dock
   ------------------------------------------------------------ */
.bottom-dock {
  --dock-background: #050707;
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1200;
  width: min(900px, calc(100% - 28px));
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: var(--dock-background);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45), 0 0 34px rgba(32, 215, 233, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(112px);
  transition:
    width 0.42s var(--ease-out),
    grid-template-columns 0.42s var(--ease-out),
    min-height 0.32s var(--ease-out),
    padding 0.32s var(--ease-out),
    gap 0.32s var(--ease-out),
    transform 0.48s var(--ease-out),
    opacity 0.28s ease,
    border-radius 0.32s var(--ease-out),
    background 0.32s ease,
    box-shadow 0.32s ease;
}
.bottom-dock.is-ready {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.bottom-dock.is-collapsed {
  width: 132px;
  min-height: 54px;
  grid-template-columns: auto 0 auto;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: var(--dock-background);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);
}
.dock-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 125px;
  margin-left: 20px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.dock-logo-img {
  display: block;
  width: 96px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
}
.dock-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  max-width: 640px;
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.24s ease, transform 0.28s var(--ease-out), max-width 0.32s var(--ease-out);
}
.dock-links a,
.dock-audience {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.014rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.dock-links a:hover,
.dock-links a:focus-visible,
.dock-audience:hover,
.dock-audience:focus-visible,
.dock-audience[aria-expanded="true"],
.dock-links a.is-active {
  color: var(--cyan);
}
.dock-audience strong { color: inherit; font-weight: 800; }
.dock-audience .chevron {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s ease;
}
.dock-audience[aria-expanded="true"] .chevron {
  transform: rotate(225deg) translateY(-1px);
}
.dock-submenu {
  position: absolute;
  left: var(--dock-submenu-x, 50%);
  bottom: calc(100% - 2px);
  width: 245px;
  max-width: calc(100% - 24px);
  display: grid;
  gap: 2px;
  padding: 28px 28px 34px;
  border-radius: 42px 42px 0 0;
  background: rgba(5, 7, 7, 0.78);
  backdrop-filter: blur(18px);
  text-align: center;
  box-shadow: 0 -22px 60px rgba(0, 0, 0, 0.32), 0 0 34px rgba(32, 215, 233, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(18px) scale(0.96);
  transform-origin: 50% 100%;
  transition: opacity 0.22s ease, transform 0.28s var(--ease-out);
}
.dock-submenu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.dock-submenu a {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.dock-submenu a:hover,
.dock-submenu a:focus-visible,
.dock-submenu a[aria-current="page"] {
  color: var(--cyan);
}
.dock-indicator {
  display: none;
}
.dock-toggle {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dock-toggle:hover,
.dock-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.dock-toggle span,
.dock-toggle::before,
.dock-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.26s var(--ease-out), opacity 0.2s ease, width 0.2s ease;
}
.dock-toggle::before,
.dock-toggle::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.dock-toggle::before { top: 16px; }
.dock-toggle::after { bottom: 16px; }
.bottom-dock:not(.is-collapsed) .dock-toggle::before {
  transform: translateX(-50%) translateY(8px) rotate(45deg);
}
.bottom-dock:not(.is-collapsed) .dock-toggle span { opacity: 0; }
.bottom-dock:not(.is-collapsed) .dock-toggle::after {
  transform: translateX(-50%) translateY(-8px) rotate(-45deg);
}
.bottom-dock.is-collapsed .dock-links,
.bottom-dock.is-collapsed .dock-indicator {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.bottom-dock.is-collapsed .dock-submenu { display: none; }
.bottom-dock.is-collapsed .dock-logo {
  width: 78px;
  min-width: 0;
  height: 54px;
  margin-left: 0;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.bottom-dock.is-collapsed .dock-logo-img {
  width: 66px;
  max-height: 32px;
  object-fit: contain;
}
.bottom-dock.is-collapsed .dock-toggle {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.bottom-dock.is-collapsed .dock-toggle span,
.bottom-dock.is-collapsed .dock-toggle::before,
.bottom-dock.is-collapsed .dock-toggle::after {
  width: 28px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
  .why-us {
    min-height: 100svh;
    align-items: center;
  }
  .why-us__center { width: min(58vw, 360px); }
  .why-card { width: min(40vw, 290px); }
  .why-card--one { left: 5vw; top: 12vh; }
  .why-card--two { right: 5vw; top: 17vh; }
  .why-card--three { left: 5vw; bottom: 13vh; }
  .why-card--four { right: 5vw; bottom: 9vh; }
  .contact {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vh, 5rem);
  }
  .contact__form { grid-template-columns: 1fr; }
  .contact__title { max-width: 12ch; }
  .nav__links { display: none; }
  .offer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide { width: 78vw; }
  .slider__track { padding: 0 11vw; }
  .slider__hint { display: none; }
  .footer__row { flex-direction: column; }
  .h-gallery__slide { width: 84vw; }
  .h-gallery__track { gap: 6vw; padding: 0 6vw; }
  .bottom-dock {
    border-radius: 26px;
  }
  .dock-logo {
    min-width: auto;
    padding-right: 14px;
  }
  .dock-links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dock-links::-webkit-scrollbar { display: none; }
}

@media (max-width: 620px) {
  .why-us {
    min-height: 128svh;
    padding: 7rem 4vw;
  }
  .why-us__title { font-size: clamp(2.7rem, 16vw, 5rem); }
  .why-us__center {
    top: 45%;
    width: min(72vw, 300px);
  }
  .why-card {
    position: relative;
    inset: auto;
    width: min(100%, 330px);
    aspect-ratio: auto;
    min-height: 230px;
  }
  .why-us__cards {
    position: absolute;
    left: 4vw;
    right: 4vw;
    bottom: 6vh;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    justify-items: center;
  }
  .offer__top {
    align-items: flex-start;
    flex-direction: column;
  }
  .offer__grid { grid-template-columns: 1fr; }
  .offer-card__media { aspect-ratio: 1 / 0.82; }
  .contact__quick-link { gap: 0.85rem; }
}

/* ------------------------------------------------------------
   Reduced motion: native scroll, no animation, content visible
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; }
  /* No pin/scrub: gallery becomes a plain swipeable row */
  .h-gallery { height: auto; overflow-x: auto; padding: clamp(5rem, 10vh, 8rem) 0; }
  .h-gallery__hud { display: none; }
}

/* Decorative infinite loops pause while their section is off-screen */
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after { animation-play-state: paused !important; }

/* ------------------------------------------------------------
   Cookie consent (consent.js, _app/includes/cookie-consent.cfm).
   Sits above the bottom dock; both choices look the same on purpose.
   ------------------------------------------------------------ */
.consent {
  position: fixed;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  z-index: 1300;
  width: min(560px, calc(100% - 32px));
  padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid rgba(239, 252, 255, 0.14);
  border-radius: 14px;
  background: rgba(6, 12, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: var(--text);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.consent.is-visible { opacity: 1; transform: translate(-50%, 0); }
.consent__title { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.02em; }
.consent__text { margin-top: 0.4rem; font-size: 0.86rem; line-height: 1.5; color: rgba(239, 252, 255, 0.78); }
.consent__actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.consent__btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(239, 252, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.consent__btn:hover,
.consent__btn:focus-visible { background: var(--text); color: var(--bg); }
.consent-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

/* ------------------------------------------------------------
   Mobile menu (≤ 900px): header shows logo + burger, links live
   in a full-screen menu (main.js initMobileMenu).
   ------------------------------------------------------------ */
.nav__burger,
.mobile-menu__close {
  position: relative;
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 252, 255, 0.35);
  border-radius: 50%;
  background: rgba(3, 6, 9, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.nav__burger span,
.mobile-menu__close span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child { top: 27px; }
.mobile-menu__close span { top: 23px; }
.mobile-menu__close span:first-child { transform: rotate(45deg); }
.mobile-menu__close span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 4vw calc(1.6rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 85% 8%, rgba(32, 215, 233, 0.16), transparent 22rem),
    var(--bg);
  color: var(--text);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
/* display:flex above would otherwise beat the hidden attribute and leave an invisible layer over the page */
.mobile-menu[hidden] { display: none; }
.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__bar .mobile-menu__close { display: block; }
.mobile-menu__nav { margin-top: clamp(2rem, 7vh, 4rem); }
.mobile-menu__list,
.mobile-menu__sub { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid rgba(239, 252, 255, 0.1); }
.mobile-menu__list > li > a {
  display: block;
  padding: 0.85rem 0;
  font-size: clamp(1.75rem, 8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.mobile-menu__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1rem;
  padding-bottom: 1rem;
}
.mobile-menu__sub a {
  display: block;
  padding: 0.55rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(239, 252, 255, 0.72);
}
.mobile-menu a[aria-current="page"] { color: var(--cyan); }
.mobile-menu__contact {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 2rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.mobile-menu__contact a:not(.btn) { padding: 0.35rem 0; color: rgba(239, 252, 255, 0.82); }
.mobile-menu__contact .btn { margin-top: 0.6rem; justify-content: center; }
.mobile-menu__contact a.language-toggle { justify-self: start; margin-top: 0.6rem; padding: 0.22rem; color: rgba(255, 255, 255, 0.62); }
html.is-menu-open,
html.is-menu-open body { overflow: hidden; }

@media (max-width: 900px) {
  /* body + .nav outranks pages.css ".page .nav__links", which squeezed the links into the header */
  body .nav .nav__links,
  body .nav .btn--small,
  body .nav .nav__actions { display: none; } /* the language switch moves into the mobile menu */
  .nav__burger { display: block; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

/* ------------------------------------------------------------
   Readable type on phones. The desktop display type uses very
   tight tracking (-0.05em) and leading (0.86–0.95); at phone sizes
   words touch, accents hit the line above and long words such as
   "WEBSTRÁNOK" run off the screen. These overrides win over the
   per-section heading rules on purpose, hence !important.
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  main :is(h1, h2, h3),
  main :is(h1, h2, h3) :is(span, em, strong, a, div),
  .footer__word {
    letter-spacing: -0.015em !important;
  }
  main :is(h1, h2, h3) {
    line-height: 1.08 !important;
    word-spacing: 0.04em;
    overflow-wrap: break-word;
    hyphens: manual;
  }
  /* Serif italic accents sit tight against the sans words around them */
  main :is(h1, h2, h3) em { padding-inline: 0.04em; }

  /* Largest titles: sized so the longest Slovak words fit a 360px screen */
  .page-title,
  .page-title__main,
  .page-hero > h1,
  .pf2-hero__title,
  .contact__title,
  .about-cta h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.2rem) !important;
  }
  .page-title__kw { font-size: 0.42em; line-height: 1.3 !important; }
  .hero__title { font-size: clamp(2.4rem, 12.5vw, 3.6rem); }

  /* Body copy and leads: comfortable line length and leading */
  main p { line-height: 1.6; }
  .page-lead,
  .hero__sub,
  .pf2-hero__lead { font-size: 1.05rem; line-height: 1.6; }

  /* Small uppercase labels: never below 12px */
  .related-service__meta span,
  .pf2-ref__top,
  .pf2-stat span,
  .pf2-filter,
  .sd-step__num,
  .eyebrow,
  .page-kicker,
  .section-head__label { font-size: max(12px, 0.75rem) !important; /* page styles (head includes) load later */ }

  /* The footer wordmark had a 4rem minimum, wider than a phone */
  .footer__word { font-size: 16vw; }
  .footer { overflow: hidden; }
}

/* Phones: "Prečo ONOFFLINE" flows as logo + tagline, then the cards, instead of
   absolutely positioned layers that overlapped (it is not pinned here, see initWhyUs). */
@media (max-width: 620px) {
  .why-us {
    display: block;
    min-height: 0;
    padding: 6rem 5vw 4.5rem;
  }
  .why-us__center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(64vw, 260px);
    margin: 0 auto 2.5rem;
  }
  /* The title bursts apart over the logo, so centre it on the logo block */
  .why-us__title { top: calc(6rem + 115px); }
  .why-us__cards {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }
  .why-card {
    width: 100%;
    /* The idle float (main.js sets these inline) makes stacked cards bump into each other */
    --why-float-x: 0px !important;
    --why-float-y: 0px !important;
    --why-float-r: 0deg !important;
  }
  .why-us__cards { gap: 1rem; }

  .intro__statement { line-height: 1.22; letter-spacing: -0.015em; }
  /* Right-aligned on desktop (margin-left: auto); narrower than 40ch it touched the left edge */
  .intro__aside { margin-left: 4vw; margin-right: 4vw; }
}
