/* ==========================================================================
   Clever Modules // Szkic 005 (Strona Marki / Brand & Engineering Studio)
   Szerokosc: max-width 1600px | Styl: Campsite White / Stone
   5-Sekundowa Kinowa Opowiesc w stylu Active Theory (activetheory.net)
   Tlo: Matryca 21st.dev + inzynierski obiekt 3D Three.js
   Napis: "clevermodules" z 4 wielkosci kafelkow o zaokraglonych rogach
   Zero znakow em-dash i en-dash. Zgodnosc z WCAG 2.2 AA.
   ========================================================================== */

:root {
  --container-max: 1600px;
  --header-height: 84px;
  --gutter: 48px;
  --section-space: 96px;

  /* Barwy: Jasny kamien architektoniczny (Campsite) */
  --bg-page: #F6F7F9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FCFCFD;
  --bg-subtle: #EEF0F4;
  --bg-polaris-pill: #F1F2F4;
  --bg-dark-studio: #0B0E14;

  --border-subtle: rgba(11, 14, 20, 0.08);
  --border-medium: rgba(11, 14, 20, 0.14);
  --border-strong: rgba(11, 14, 20, 0.28);

  --text-main: #0B0E14;
  --text-muted: #505664;
  --text-dim: #828997;
  --text-inverse: #FFFFFF;

  /* Akcenty Shopify i Clever Modules (Zero zieleni, styl 21st.dev / szafir i kobalt) */
  --accent-shopify: #101010;
  --accent-shopify-soft: rgba(16, 16, 16, 0.06);
  --accent-shopify-dark: #101010;
  --accent-lime: #C8F560;
  --accent-lime-ink: #0F2400;
  --accent-indigo: #101010;
  --accent-indigo-soft: rgba(16, 16, 16, 0.06);

  /* MetaMover green system: lime fills with dark ink, deep green for text, mark for dots */
  --accent-signal: #7FD93B;
  /* #3E7B16: 5.19:1 on white (AA). Not for text on lime (4.12:1): use --accent-green-deep there. */
  --accent-green-text: #3E7B16;
  /* #214B03: 10.13:1 on white, 8.05:1 on lime #C8F560. */
  --accent-green-deep: #214B03;
  --accent-green-bright: #4C9A1F;

  /* Official EU flag blue: the only blue allowed, reserved for EU hosting markers */
  --eu-blue: #003399;
  --eu-blue-soft: rgba(0, 51, 153, 0.08);
  --eu-blue-line: rgba(0, 51, 153, 0.22);

  /* Typografia */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Reddit Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Cienie inzynierskie */
  --shadow-sm: 0 1px 3px rgba(11, 14, 20, 0.04);
  --shadow-card: 0 4px 16px -2px rgba(11, 14, 20, 0.05), 0 2px 6px -1px rgba(11, 14, 20, 0.02);
  --shadow-elevated: 0 16px 40px -8px rgba(11, 14, 20, 0.08), 0 4px 12px -2px rgba(11, 14, 20, 0.03);

  /* Promienie zaokraglen */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  scroll-behavior: auto;
  /* Keeps the scrollbar's space when overflow is hidden (contact drawer, mobile menu, intro lock), so the page
     does not widen by the scrollbar width and reflow under the overlay. */
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
  font-size: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent-shopify);
  outline-offset: 3px;
}

/* ==========================================================================
   5-Sekundowe Kinowe Intro w stylu Active Theory (activetheory.net)
   ========================================================================== */

.at-intro-stage {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: transparent;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s ease;
}

.at-intro-stage.at-stage-exit {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* The overlay is in the server HTML, so its texts would be there from the first paint: they fade and rise in
   instead, HUD first, then the slide, then the progress dock. */
@keyframes at-content-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.at-telemetry-hud,
.at-narrative-container,
.at-progress-dock {
  animation: at-content-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.at-narrative-container { animation-delay: 0.15s; }
.at-progress-dock { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .at-telemetry-hud,
  .at-narrative-container,
  .at-progress-dock {
    animation: none;
  }
}

.at-telemetry-hud {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.at-hud-left, .at-hud-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.at-hud-right {
  text-align: right;
}

.at-hud-code {
  color: #0b0e14;
  font-weight: 800;
}

.at-hud-meta {
  color: var(--accent-green-text);
  font-weight: 600;
}

.at-narrative-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 640px;
  margin-top: auto;
  margin-bottom: 40px;
  text-align: left;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.at-narrative-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  filter: blur(8px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.at-narrative-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
}

.at-slide-kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-green-text);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.at-slide-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #0b0e14;
  margin: 0 0 14px; /* a <p> now (was h2), so the default top margin must go */
}

.at-slide-sub {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: #475569;
  line-height: 1.5;
  max-width: 680px;
}

.at-progress-dock {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.at-counter-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 130px;
}

.at-counter-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-green-text);
  text-transform: uppercase;
}

.at-counter-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b0e14;
  letter-spacing: 0.02em;
}

.at-progress-track {
  flex: 1;
  height: 2px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.at-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-signal);
  border-radius: 999px;
  transition: width 0.2s linear;
}

.at-skip-btn {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  color: #0b0e14;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.at-skip-btn:hover {
  background: #ffffff;
  border-color: #101010;
  color: #101010;
  box-shadow: 0 4px 12px rgba(16, 16, 16, 0.12);
}


body.at-intro-running .site-header,
body.at-intro-running #main-content,
body.at-intro-running .site-footer {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body:not(.at-intro-running) .site-header,
body:not(.at-intro-running) #main-content,
body:not(.at-intro-running) .site-footer {
  visibility: visible;
}

/* ==========================================================================
   Platno tla WebGL: Sceneria Biura + Siatka Wireframe 3D + Matryca Pikseli
   ========================================================================== */

.canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.canvas-container.is-fallback {
  background:
    radial-gradient(60% 70% at 82% 38%, rgba(16, 16, 16, 0.55), transparent 70%),
    radial-gradient(40% 50% at 70% 70%, rgba(160, 165, 181, 0.45), transparent 70%),
    var(--bg-page);
}

#stage-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  z-index: 2;
}

/* The canvas is hidden until app.js starts the intro and fades it in (paper and grid at once); the terrain
   enters as soon as its own files are ready, the shards once everything is compiled, so loading stalls
   never show as jumps. */
body.at-intro-running:not(.at-scene-ready) #stage-3d {
  opacity: 0;
}

/* Reduced motion (html.cm-no-intro, set in head.php before the first paint): no loading intro, the page is
   visible at once; the scene fades in over the paper once its terrain is ready (html.cm-scene-in). */
html.cm-no-intro #at-intro-stage {
  display: none;
}

html.cm-no-intro body.at-intro-running .site-header,
html.cm-no-intro body.at-intro-running #main-content,
html.cm-no-intro body.at-intro-running .site-footer {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html.cm-no-intro #stage-3d {
  opacity: 0;
  transition: opacity 1.1s ease-out;
}

html.cm-no-intro.cm-scene-in #stage-3d {
  opacity: 1;
}

/* Without the intro the hero makes the same staggered entrance as after it, but in CSS from the first paint:
   it needs no script, so it starts at once and never flashes. */
@keyframes cm-hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

html.cm-no-intro .site-header,
html.cm-no-intro .hero-title-main,
html.cm-no-intro .hero-description-lead,
html.cm-no-intro .hero-actions-row .btn,
html.cm-no-intro .hero-actions-row .scroll-cue {
  animation: cm-hero-in 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

html.cm-no-intro .site-header { animation-delay: 0.05s; }
html.cm-no-intro .hero-title-main { animation-delay: 0.25s; }
html.cm-no-intro .hero-description-lead { animation-delay: 0.4s; }
html.cm-no-intro .hero-actions-row .btn:nth-child(1) { animation-delay: 0.55s; }
html.cm-no-intro .hero-actions-row .btn:nth-child(2) { animation-delay: 0.67s; }
html.cm-no-intro .hero-actions-row .scroll-cue { animation-delay: 0.79s; }

@media (prefers-reduced-motion: reduce) {
  html.cm-no-intro .site-header,
  html.cm-no-intro .hero-title-main,
  html.cm-no-intro .hero-description-lead,
  html.cm-no-intro .hero-actions-row .btn,
  html.cm-no-intro .hero-actions-row .scroll-cue {
    animation: none;
  }
}

.pixel-matrix-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 1.5px 1.5px, rgba(11, 14, 20, 0.08) 1.5px, transparent 0);
  background-size: 32px 32px;
  background-position: center center;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mode-pixel-matrix .pixel-matrix-overlay {
  opacity: 1;
}

/* ==========================================================================
   Wrapper 1600px (1900px from 1980px wide, see the responsive block)
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Nawigacja gorna Huba
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              translate 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Contact square: stands in for the header CTA while a collapsing header is hidden (see initHeaderAutoHide).
   Sits where the CTA was: right edge of the container, vertically centred in the header's height. White ring
   so it reads above any section background. */
.contact-fab {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #101010;
  color: var(--text-inverse);
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 16px rgba(16, 16, 16, 0.28);
  opacity: 0;
  translate: 0 -12px;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.2s ease;
}

.contact-fab.is-visible {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.contact-fab:hover {
  background: #2B2D33;
}

.contact-fab:focus-visible {
  outline: 2px solid var(--accent-signal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab {
    transition-property: opacity, background-color;
  }
}

@media (max-width: 767px) {
  .contact-fab {
    width: 44px;
    height: 44px;
    top: 16px;
    right: 16px;
  }
}

/* Phones: hidden above the page while scrolling down (initHeaderAutoHide sets the translate). No shadow left
   peeking under the top edge. */
.site-header.is-hidden {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition-property: background-color, border-color, box-shadow, backdrop-filter;
  }
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(216, 224, 236, 0.85);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.07),
              0 1px 3px rgba(15, 23, 42, 0.03),
              inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

/* Modularny znak pikselowy 21st.dev (4x4) */





/* Wordmark from design/clevermodules.svg (components/logo.php): "clever" in currentColor, "modules" is
   .logo-lime #6FB017 (on #FFFFFF 2.66:1, on #F6F7F9 2.48:1, on #101010 7.16:1; logos are exempt from WCAG contrast). */
.cm-logo .logo-lime {
  fill: #6FB017;
}

.brand-logo {
  display: block;
  height: 16px;
  width: auto;
  aspect-ratio: 1923 / 213;
  flex: none;
  /* Smooth curves at small sizes, and its own layer so it is never rasterised with the blurred header. */
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
}

.header-nav .nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-anchor {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-anchor:hover {
  color: var(--text-main);
}

.header-meta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Self-description pill, not a partner badge: outline in brand neutrals, mono label,
   no platform green so it never reads as a Shopify-issued mark. */
.polaris-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border-medium);
  white-space: nowrap;
}

.status-badge-logo {
  flex: none;
}

.eu-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--eu-blue-soft);
  border: 1px solid var(--eu-blue-line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--eu-blue);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.eu-header-pill:hover {
  background: rgba(0, 51, 153, 0.14);
  border-color: rgba(0, 51, 153, 0.35);
}

.eu-stars-svg {
  display: inline-block;
  flex-shrink: 0;
}


/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  padding: 10px 24px;
  font-size: 0.9375rem;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 32px;
  font-size: 1.0625rem;
}

.btn-shopify,
.btn-primary {
  background: #101010;
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(16, 16, 16, 0.28);
}

.btn-shopify:hover,
.btn-primary:hover {
  background: #2B2D33;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 16, 16, 0.38);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero: Napis "clever modules" z Kwadratow (Plus Jakarta Sans 800)
   ========================================================================== */

.hero-viewport {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-height) + 36px);
  padding-bottom: 36px;
}

/* Kontener napisu clever modules z pikseli/kwadracikow */
/* Hidden until the wordmark moves to its final placement */
.monumental-pixel-heading-wrap[hidden] {
  display: none;
}

.monumental-pixel-heading-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-bottom: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 160px;
}

.pixel-title-canvas {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
  user-select: none;
}

/* Klasa dostepnosci dla czytnikow */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hero-panoramic-grid {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: 64px;
  align-items: end;
  margin-top: 10px;
}

/* The headline is sized to its own column: the widest forced line ("Shopify and WooCommerce")
   measures 12.93em, so 7.55cqi keeps it on one line with a small margin at every width. */
.hero-main-content {
  container-type: inline-size;
}

.hero-title-main {
  font-size: clamp(2.25rem, min(4.2vw, 7.2cqi), 4.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 22px;
}

/* Accent words in a lighter MetaMover green: 3.3:1 on paper, above the 3:1 large-text threshold */
/* One JSON line = one visual line, so the headline breaks the same way everywhere. */
.hero-title-line {
  display: block;
}

.hero-description-line {
  display: block;
}

.hero-description-line + .hero-description-line {
  margin-top: 0.5em;
}

.hero-title-accent {
  color: var(--accent-green-bright);
  white-space: nowrap;
}

.hero-description-lead {
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 38px;
  max-width: 820px;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 14px;
  min-height: 44px;
  padding: 0 6px;
  color: #3E434C;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: var(--text-main);
}

.scroll-cue-mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  flex: none;
}

.scroll-cue-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent-signal);
  animation: scroll-cue-wheel 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Transform keyframes (0%, 70%, 100%) set the travel and stay untouched; the opacity-only stops
   make the pill fully visible almost at once and hold it for most of the stroke. */
@keyframes scroll-cue-wheel {
  0% { transform: translateY(0); opacity: 0; }
  6% { opacity: 1; }
  58% { opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(11px); opacity: 0; }
}

/* ==========================================================================
   Space system: vertical spacers .s.s--N (cm_space() in components/space.php)
   ========================================================================== */

.s { display: block; }
.s--8 { height: 8px; }
.s--12 { height: 12px; }
.s--16 { height: 16px; }
.s--24 { height: 24px; }
.s--32 { height: 32px; }
.s--48 { height: 48px; }
.s--56 { height: 56px; }
.s--64 { height: 64px; }
.s--96 { height: 96px; }
/* .s--128 is not used yet; it stays as part of the full spacing scale. */
.s--128 { height: 128px; }

/* Exception to mobile-first: the .s--N base value is the desktop one and smaller screens shorten it via
   max-width (otherwise the whole table would repeat in every breakpoint). .no-rwd turns the scaling off.
   Mobile values are 3/5 of the base rounded to the 4px grid, so some of them fall outside the scale. */
@media (max-width: 767px) {
  .s--8:not(.no-rwd) { height: 4px; }
  .s--12:not(.no-rwd) { height: 8px; }
  .s--16:not(.no-rwd) { height: 12px; }
  .s--24:not(.no-rwd) { height: 16px; }
  .s--32:not(.no-rwd) { height: 20px; }
  .s--48:not(.no-rwd) { height: 28px; }
  .s--56:not(.no-rwd) { height: 36px; }
  .s--64:not(.no-rwd) { height: 40px; }
  .s--96:not(.no-rwd) { height: 56px; }
  .s--128:not(.no-rwd) { height: 76px; }
}

@media (min-width: 768px) and (max-width: 1399px) {
  .s--16:not(.no-rwd) { height: 12px; }
  .s--24:not(.no-rwd) { height: 16px; }
  .s--32:not(.no-rwd) { height: 24px; }
  .s--48:not(.no-rwd) { height: 32px; }
  .s--56:not(.no-rwd) { height: 40px; }
  .s--64:not(.no-rwd) { height: 48px; }
  .s--96:not(.no-rwd) { height: 64px; }
  .s--128:not(.no-rwd) { height: 96px; }
}

@media (min-width: 1400px) {
  .s[data-s-1400="8"] { height: 8px; }
  .s[data-s-1400="12"] { height: 12px; }
  .s[data-s-1400="16"] { height: 16px; }
  .s[data-s-1400="24"] { height: 24px; }
  .s[data-s-1400="32"] { height: 32px; }
  .s[data-s-1400="48"] { height: 48px; }
  .s[data-s-1400="56"] { height: 56px; }
  .s[data-s-1400="64"] { height: 64px; }
  .s[data-s-1400="96"] { height: 96px; }
  .s[data-s-1400="128"] { height: 128px; }
}

/* ==========================================================================
   Pillars below the hero: the full version of the three loader slides
   ========================================================================== */

/* Anchor of the number block's entrance effect (data-fx-canvas): carries data only, takes no space. */
.pillars-marker-fx {
  display: none;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The number block is drawn in WebGL over .pillar-slot (desktop) or in the left gutter (mobile). */
.pillars-section {
  --pillar-marker: 76px;
}

.pillar-slot {
  display: block;
  width: var(--pillar-marker);
  height: var(--pillar-marker);
  margin-bottom: 28px;
}

.pillar-body {
  padding-top: 24px;
}

.pillar-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green-text);
}

.pillar-title {
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-wrap: balance;
}

.pillar-eu {
  color: var(--eu-blue);
}

/* Paragraph block with room above (after the title) and below (before the pills): 32px on desktop, 24px below 1024px. */
.pillar-copy {
  margin: 24px 0;
}

@media (min-width: 1024px) {
  .pillar-copy {
    margin: 32px 0;
  }
}

.pillar-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.pillar-text + .pillar-text {
  margin-top: 12px;
}

/* Keyword pills under a pillar's text: white with a light border, since the section background is white. */
.pillar-tags .polaris-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  transition: border-color 0.4s ease-in-out;
}

.pillar-tags .polaris-pill:hover {
  border-color: #666666;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Three columns side by side: titles share the height of three lines, so the paragraphs start on one line. */
@media (min-width: 1024px) {
  .pillar-title {
    font-size: clamp(1.375rem, 1.8vw, 1.5rem);
    min-height: calc(3 * 1.2em);
  }
}

/* From 1500px every title fits two lines at the 24px cap, so the shared height drops to two. */
@media (min-width: 1500px) {
  .pillar-title {
    min-height: calc(2 * 1.2em);
  }
}

@media (max-width: 767px) {
  .pillars-section {
    --pillar-marker: 37px;
    --pillar-gutter: 64px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillar-slot {
    display: none;
  }

  /* The body starts after the gutter, so its divider never runs under the number block. */
  .pillar-body {
    margin-left: calc(var(--pillar-gutter) + 10px);
    border-top: 1px solid var(--border-medium);
  }

  .pillar:first-child .pillar-body {
    border-top: 0;
  }
}

/* ==========================================================================
   Siatka Kafelkow Inzynierskich (Z Ikonami Polaris)
   ========================================================================== */

.capabilities-grid-section {
  padding-block: var(--section-space);
}

.section-preamble {
  max-width: 860px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-green-text);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

/* "[[phrase]]" highlight in section headings. #4C9A1F on white: 3.53:1, AA for large bold text only. */
.section-heading-accent {
  color: var(--accent-green-bright);
  white-space: nowrap;
}

.section-heading-primary {
  font-size: clamp(2.125rem, 3.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subheading-lead {
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* "[[phrase]]" inside running text (leads, FAQ answers, process steps, about): the weight of the sentence, no colour. */
.accent {
  font-weight: 700;
  color: var(--text-main);
}

/* Hyphenated words that must not break at the hyphen ("e-commerce", "e-mail"), wrapped by cm_markup in data_loader.php. */
.nowrap {
  white-space: nowrap;
}

.polaris-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.polaris-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.polaris-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(16, 16, 16, 0.35);
}

.tile-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-polaris-pill);
  color: var(--accent-shopify-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.2s ease, color 0.2s ease;
}

.polaris-tile:hover .tile-icon-wrap {
  background: var(--accent-shopify-soft);
  color: var(--accent-shopify);
}

.tile-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.tile-tag-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.tile-title {
  font-size: 1.4375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.tile-description {
  font-size: 0.9875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
}

.tile-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* Wyrozniony kafelek infrastruktury w UE */
.polaris-tile.tile-eu-featured {
  border-color: var(--eu-blue-line);
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
  position: relative;
  overflow: hidden;
}

.polaris-tile.tile-eu-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #003399 0%, #003399 70%, #FFCC00 100%);
}

.tile-icon-wrap.tile-icon-eu-wrap {
  background: var(--eu-blue-soft);
  border: 1px solid var(--eu-blue-line);
}

.tile-eu-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tile-tag-kicker.kicker-eu {
  color: var(--eu-blue);
  font-weight: 800;
  margin-bottom: 0;
}

.eu-certified-micro-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--eu-blue);
  color: #FFFFFF;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.tile-title-eu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eu-flag-mini-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.polaris-pill.pill-eu {
  background: var(--eu-blue-soft);
  color: var(--eu-blue);
  border-color: var(--eu-blue-line);
}

.polaris-tile.tile-eu-featured:hover {
  border-color: rgba(0, 51, 153, 0.55);
  box-shadow: 0 16px 36px -10px rgba(0, 51, 153, 0.15), var(--shadow-sm);
}

.polaris-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-polaris-pill);
  padding: 3px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   Services: editorial numbered rows with a cursor-following glass preview
   ========================================================================== */

.services-section {
  padding-block: var(--section-space);
  position: relative;
}

.service-rows {
  list-style: none;
  border-top: 1px solid var(--border-medium);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px 32px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-medium);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-green-text);
  padding-top: 4px;
  letter-spacing: 0.06em;
}

.service-title {
  font-size: clamp(1.1875rem, 1.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--text-main);
}

/* Description block: one or more paragraphs ("description" in the data: a string or a list of strings). */
.service-desc {
  margin: 1em 0;
  max-width: 580px;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-desc p + p {
  margin-top: 0.75em;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* Same look as the pills under the pillars ("How we work"): white with a light border on the white section. */
.service-pills .polaris-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  transition: border-color 0.4s ease-in-out;
}

.service-pills .polaris-pill:hover {
  border-color: #666666;
}

/* "Ask about this": a quiet text link right after the description; on wide screens it moves under the row number
   (the 96px first column), so it never meets the title or the photo panel. */
.service-ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.service-ask:hover,
.service-ask:focus-visible {
  border-bottom-color: currentColor;
}

.service-ask-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-ask:hover .service-ask-arrow {
  transform: translateX(4px);
}

@media (min-width: 1200px) {
  .service-ask {
    position: absolute;
    top: 94px; /* row padding 56px + number line (4px + 20px) + 14px, same gap as before the padding change */
    left: 0;
    margin-top: 0;
  }
}

/* 48px box: when the row's photo opens, app.js moves it into the panel and fills it white. */
.service-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 1.625rem;
  color: var(--text-dim);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

/* Service photos. With WebGL (.media-webgl, app.js initServiceMedia) the <img> stays in the page for SEO and
   screen readers but is invisible: the canvas draws it with the block transition. Without WebGL or with
   reduced motion the photo is shown as is, cut to the same skewed panel. */
.service-media {
  margin: 0;
}

.service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-section.media-webgl .service-media img {
  opacity: 0;
}

@media (min-width: 1200px) {
  .service-main {
    max-width: 46%;
  }

  .service-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    pointer-events: none;
  }

  .services-section:not(.media-webgl) .service-media {
    clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
  }
}

@media (max-width: 1199px) {
  .service-media {
    width: 100%;
    aspect-ratio: 2 / 1;
    margin-top: 20px;
  }

  .services-section:not(.media-webgl) .service-media {
    clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
  }
}

.service-row:hover .service-arrow {
  transform: translateX(10px);
  color: var(--text-main);
}

/* Browser-frame variant (section.media.frame = "browser"): a CSS browser window with a 16:10 screenshot in every
   row, always visible. Wide screens: third grid column; below 1200px: under the text. Hover: the image only
   scales to 1.05 inside the window (or scrolls, see .is-scroll), so the layout never moves. */
.service-media-browser {
  position: relative;
  margin: 0;
  min-width: 0;
}

/* Phone window (media.phone) over the browser's bottom-right corner, drawn after the iPhone 17: thin even bezel,
   large continuous corners, Dynamic Island, side buttons. Everything scales from the figure width (cqw), so the
   phone keeps its shape at any row width. The figure keeps room for the overhang below and to the right. */
.service-media-browser {
  container-type: inline-size;
}

.service-media-browser:has(.browser-phone) {
  padding: 0 4cqw 5cqw 0;
}

.browser-phone {
  --pw: 27cqw;
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--pw);
  aspect-ratio: 71.5 / 149.6;
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.17);
  background: linear-gradient(165deg, #3C3F46 0%, #1A1C21 45%, #24262C 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--pw) * 0.012) #0B0E14,
    0 28px 56px -20px rgba(11, 14, 20, 0.5),
    0 6px 14px -4px rgba(11, 14, 20, 0.2);
}

/* Screen: iOS status bar (time, Dynamic Island, signal, wifi, battery), the page viewport, Safari's bottom
   address bar and the home indicator. Proportions follow a 393pt wide iPhone (status 54pt, island 125x37pt,
   address pill 40pt, toolbar 44pt). */
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.14);
  background: #fff;
  color: #000;
  font-family: -apple-system, "SF Pro Text", var(--font-sans);
}

.phone-status {
  position: relative;
  flex: none;
  height: calc(var(--pw) * 0.13);
  background: #fff;
}

.phone-status > * {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.phone-time {
  left: calc(var(--pw) * 0.1);
  font-size: calc(var(--pw) * 0.042);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.phone-island {
  top: calc(var(--pw) * 0.03);
  left: 50%;
  width: calc(var(--pw) * 0.27);
  height: calc(var(--pw) * 0.064);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.phone-signal {
  right: calc(var(--pw) * 0.2);
  display: flex;
  align-items: flex-end;
  gap: calc(var(--pw) * 0.004);
  height: calc(var(--pw) * 0.03);
}

.phone-signal i {
  width: calc(var(--pw) * 0.009);
  border-radius: 1px;
  background: #000;
}

.phone-signal i:nth-child(1) { height: 40%; }
.phone-signal i:nth-child(2) { height: 60%; }
.phone-signal i:nth-child(3) { height: 80%; }
.phone-signal i:nth-child(4) { height: 100%; }

/* Wifi: a quarter disc with rings, clipped to a fan. */
.phone-wifi {
  right: calc(var(--pw) * 0.145);
  width: calc(var(--pw) * 0.04);
  height: calc(var(--pw) * 0.03);
  background: radial-gradient(circle at 50% 100%, #000 0 14%, transparent 15% 36%, #000 37% 50%, transparent 51% 72%, #000 73% 86%, transparent 87%);
  clip-path: polygon(50% 100%, 0 20%, 100% 20%);
}

.phone-battery {
  right: calc(var(--pw) * 0.06);
  width: calc(var(--pw) * 0.062);
  height: calc(var(--pw) * 0.03);
  border: calc(var(--pw) * 0.004) solid rgba(0, 0, 0, 0.4);
  border-radius: calc(var(--pw) * 0.009);
  background: linear-gradient(90deg, #000 0 80%, transparent 80%) content-box;
  padding: calc(var(--pw) * 0.004);
}

.phone-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

/* The <picture> around the phone capture (AVIF source + WebP img) must fill the view like the img did. */
.phone-view picture {
  display: block;
  height: 100%;
}

.phone-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Safari bottom bar: address pill, toolbar glyphs, home indicator. While the page scrolls (hover on the phone in
   the scroll variant) it collapses the way Safari does: the toolbar folds away and the address shrinks to one
   small line above the home indicator. */
.phone-safari {
  --bar-ease: 0.7s ease-in-out;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--pw) * 0.02);
  padding: calc(var(--pw) * 0.02) calc(var(--pw) * 0.04) calc(var(--pw) * 0.02);
  background: #F2F2F7;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transition: gap var(--bar-ease), padding var(--bar-ease), background-color var(--bar-ease);
}

.phone-url {
  display: flex;
  align-items: center;
  width: 100%;
  height: calc(var(--pw) * 0.1);
  padding: 0 calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.03);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: calc(var(--pw) * 0.038);
  line-height: 1;
  transition: height var(--bar-ease), font-size var(--bar-ease), background-color var(--bar-ease), box-shadow var(--bar-ease);
}

.phone-url b {
  flex: none;
  font-weight: 500;
  font-size: calc(var(--pw) * 0.032);
  color: #000;
}

.phone-url b,
.phone-url i {
  transition: opacity var(--bar-ease);
}

.phone-tools {
  overflow: hidden;
  transition: height var(--bar-ease), opacity var(--bar-ease);
}

/* Only where the page scrolls at all (reduced motion keeps the full bar, as nothing moves). */
@media (prefers-reduced-motion: no-preference) {
  .service-media-browser.is-scroll .browser-phone:hover .phone-safari {
    gap: 0;
    padding-top: calc(var(--pw) * 0.01);
    background: #fff;
  }

  .service-media-browser.is-scroll .browser-phone:hover .phone-url {
    height: calc(var(--pw) * 0.06);
    font-size: calc(var(--pw) * 0.03);
    background: transparent;
    box-shadow: none;
  }

  .service-media-browser.is-scroll .browser-phone:hover .phone-url b,
  .service-media-browser.is-scroll .browser-phone:hover .phone-url i {
    opacity: 0;
  }

  .service-media-browser.is-scroll .browser-phone:hover .phone-tools {
    height: 0;
    opacity: 0;
  }
}

.phone-url > span {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reload: a ring with a gap. */
.phone-url i {
  flex: none;
  width: calc(var(--pw) * 0.034);
  height: calc(var(--pw) * 0.034);
  border: calc(var(--pw) * 0.005) solid #000;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.phone-tools {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 calc(var(--pw) * 0.03);
  height: calc(var(--pw) * 0.09);
  align-items: center;
  color: #007AFF;
}

.phone-tools i {
  position: relative;
  display: block;
  width: calc(var(--pw) * 0.045);
  height: calc(var(--pw) * 0.045);
}

.phone-tools .is-back,
.phone-tools .is-fwd {
  width: calc(var(--pw) * 0.028);
  height: calc(var(--pw) * 0.028);
  border: calc(var(--pw) * 0.006) solid currentColor;
  border-width: 0 0 calc(var(--pw) * 0.006) calc(var(--pw) * 0.006);
  transform: rotate(45deg);
}

.phone-tools .is-fwd {
  transform: rotate(-135deg);
  color: #B9BCC4;
}

/* Share: a box open at the top with the arrow stem. */
.phone-tools .is-share {
  border: calc(var(--pw) * 0.005) solid currentColor;
  border-top-color: transparent;
  border-radius: calc(var(--pw) * 0.006);
  height: calc(var(--pw) * 0.04);
  margin-top: calc(var(--pw) * 0.01);
}

.phone-tools .is-share::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--pw) * -0.018);
  width: calc(var(--pw) * 0.005);
  height: calc(var(--pw) * 0.036);
  background: currentColor;
  transform: translateX(-50%);
}

/* Bookmarks: an open book, two leaves. */
.phone-tools .is-book {
  border: calc(var(--pw) * 0.005) solid currentColor;
  border-radius: calc(var(--pw) * 0.006);
  height: calc(var(--pw) * 0.036);
}

.phone-tools .is-book::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: calc(var(--pw) * 0.005);
  background: currentColor;
  transform: translateX(-50%);
}

/* Tabs: two offset squares. */
.phone-tools .is-tabs {
  border: calc(var(--pw) * 0.005) solid currentColor;
  border-radius: calc(var(--pw) * 0.006);
  width: calc(var(--pw) * 0.036);
  height: calc(var(--pw) * 0.036);
  margin-left: calc(var(--pw) * 0.009);
}

.phone-tools .is-tabs::before {
  content: "";
  position: absolute;
  left: calc(var(--pw) * -0.014);
  top: calc(var(--pw) * 0.004);
  width: calc(var(--pw) * 0.036);
  height: calc(var(--pw) * 0.036);
  border: inherit;
  border-radius: inherit;
  border-right: 0;
  border-top: 0;
  box-sizing: border-box;
}

.phone-home {
  width: calc(var(--pw) * 0.36);
  height: calc(var(--pw) * 0.013);
  border-radius: 999px;
  background: #000;
  margin-top: calc(var(--pw) * 0.01);
}

/* Side buttons: action and volume on the left, power on the right, as slim bars outside the body. */
.phone-btn {
  position: absolute;
  width: calc(var(--pw) * 0.014);
  border-radius: 2px;
  background: #2B2E34;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-btn-action { left: calc(var(--pw) * -0.014); top: 16%; height: 4%; }
.phone-btn-up { left: calc(var(--pw) * -0.014); top: 23%; height: 7%; }
.phone-btn-down { left: calc(var(--pw) * -0.014); top: 31.5%; height: 7%; }
.phone-btn-power { right: calc(var(--pw) * -0.014); top: 25%; height: 11%; }

.browser-frame {
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.browser-dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}

.browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Address field: row title or media.caption. Muted ink on the light bar, measured 5.3:1 on #EEF0F4. */
.browser-title {
  flex: 1;
  min-width: 0;
  height: 22px;
  line-height: 22px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-view {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
}

.browser-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Each window reacts to its own hover: the phone sits outside .browser-frame, so pointing at it leaves the browser still. */
.browser-frame:hover .browser-view img,
.browser-phone:hover .phone-view img {
  transform: scale(1.05);
}

/* Slide variant (media.second): two captures side by side on a track twice the window's width. Hover moves the
   whole track one window to the left (both images travel, nothing overlaps), 600ms ease-in-out both ways. A hint
   layer on the right (arrow and hand) says there is more and fades out on hover. No zoom in this variant. */
.service-media-browser.is-slide .browser-view {
  position: relative;
}

.browser-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.browser-track picture,
.browser-track > img {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
}

.browser-track picture img {
  width: 100%;
}

.service-media-browser.is-slide .browser-view img {
  transition: none;
}

.service-media-browser.is-slide .browser-frame:hover .browser-view img {
  transform: none;
}

.service-media-browser.is-slide .browser-frame:hover .browser-track {
  transform: translateX(-50%);
}

.browser-hint {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 26%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(11, 14, 20, 0) 0%, rgba(11, 14, 20, 0.28) 100%);
  color: #fff;
  transition: opacity 0.6s ease-in-out;
}

.browser-hint-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  box-shadow: 0 8px 20px -8px rgba(11, 14, 20, 0.5);
}

.browser-hint-arrow svg {
  width: 20px;
  height: 20px;
}

.browser-hint-hand svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 6px rgba(11, 14, 20, 0.5));
}

.service-media-browser.is-slide .browser-frame:hover .browser-hint {
  opacity: 0;
}

/* Scroll variant (media.scroll): the image is a full page capture at the window's width; hover scrolls it to its
   end over --scroll-in, and it drifts back over --scroll-out. 100cqh is the window's own height (size container),
   so the end position needs no pixel values. */
.service-media-browser.is-scroll .browser-view,
.service-media-browser.is-scroll .phone-view {
  container-type: size;
}

.service-media-browser.is-scroll .browser-view img,
.service-media-browser.is-scroll .phone-view img {
  --scroll-in: 12s;
  --scroll-out: 5s;
  height: auto;
  object-fit: unset;
  transform: translateY(0);
  transition: transform var(--scroll-out) ease-in-out;
}

.service-media-browser.is-scroll .browser-frame:hover .browser-view img,
.service-media-browser.is-scroll .browser-phone:hover .phone-view img {
  transform: translateY(calc(100cqh - 100%));
  transition-duration: var(--scroll-in);
}

@media (min-width: 1200px) {
  /* Text to window: 64px (the row's 32px column gap plus the figure's own margin). */
  .services-frame-browser .service-row {
    grid-template-columns: 96px minmax(0, 1fr) 40%;
  }

  .services-frame-browser .service-media-browser {
    margin-left: 32px;
  }

  .services-frame-browser .service-main {
    max-width: none;
  }
}

@media (max-width: 1199px) {
  .service-media-browser {
    grid-column: 2;
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .browser-view img,
  .phone-view img,
  .browser-track,
  .browser-hint {
    transition: none;
  }

  .browser-frame:hover .browser-view img,
  .browser-phone:hover .phone-view img,
  .service-media-browser.is-scroll .browser-frame:hover .browser-view img,
  .service-media-browser.is-scroll .browser-phone:hover .phone-view img {
    transform: none;
  }
}

/* ==========================================================================
   Typical projects: pinned horizontal scroll of "incoming message" cards
   ========================================================================== */

.projects-section {
  padding-block: var(--section-space) 0;
  overflow: hidden;
}

.projects-stage {
  position: relative;
  padding-bottom: 72px;
}

.projects-track {
  display: flex;
  gap: 28px;
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}

.project-card {
  width: 520px;
  flex: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.project-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green-bright);
  flex: none;
}

.project-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-index {
  margin-left: auto;
  font-weight: 700;
}

.project-quote {
  margin: 0;
  font-size: clamp(1.5rem, 1.7vw, 1.875rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-wrap: balance;
}

.project-solution-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green-text);
  margin-bottom: 8px;
}

.project-solution p,
.project-solution-text {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9875rem;
}

.project-tag {
  margin-top: auto;
  align-self: flex-start;
}

.project-card-cta {
  justify-content: center;
  gap: 16px;
  background: var(--ink, #101010);
  background: #101010;
  border-color: #101010;
}

.project-card-cta .project-quote,
.project-card-cta .project-solution-text {
  color: #F3F5F0;
}

.project-card-cta .project-solution-text {
  color: rgba(243, 245, 240, 0.72);
}

.project-card-cta .btn {
  align-self: flex-start;
}

/* Progress rail with the one 3D accent: a tiny glass cube that rolls as the track scrolls. */
.projects-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
}

.projects-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 72px;
}

.projects-counter-now {
  color: var(--text-main);
}

.projects-rail {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(16, 16, 16, 0.1);
  border-radius: 999px;
}

.projects-rail-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent-green-bright);
  border-radius: 999px;
}

.projects-cube {
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  transform-style: preserve-3d;
  transform: translateX(0) rotateX(-18deg) rotateY(32deg);
}

.pc-face {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(76, 154, 31, 0.55);
  backdrop-filter: blur(2px);
}

.pc-front { transform: translateZ(9px); }
.pc-back { transform: translateZ(-9px); }
.pc-top { transform: rotateX(90deg) translateZ(9px); }
.pc-bottom { transform: rotateX(-90deg) translateZ(9px); }
.pc-left { transform: rotateY(-90deg) translateZ(9px); }
.pc-right { transform: rotateY(90deg) translateZ(9px); }

/* ==========================================================================
   Problems we fix: comparison copy of Typical projects with the new copy and a real slider.
   Default (no JS, below 1200px, reduced motion): a native swipe row with snap.
   .is-pinned (JS, 1200px and up): the section pins and the track moves with the page scroll.
   ========================================================================== */

.problems-section {
  padding-block: var(--section-space) 0;
  overflow: hidden;
  /* clip, not a scroll container: keyboard focus on a card off screen must not scroll the section sideways. */
  overflow: clip;
}

/* "Sound familiar?" always on its own line, part of the same H2. */
.section-heading-question {
  display: block;
}

.problems-stage {
  position: relative;
  padding-bottom: 72px;
}

.problems-track {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 4px var(--gutter) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.problems-track::-webkit-scrollbar {
  display: none;
}

.problems-track:focus-visible {
  outline: 2px solid var(--accent-green-text);
  outline-offset: -2px;
}

.problems-section.is-pinned .problems-track {
  overflow: visible;
  width: max-content;
  scroll-snap-type: none;
  will-change: transform;
}

.problems-section.is-dragging .problems-track {
  scroll-snap-type: none;
}

.problems-section.is-dragging {
  user-select: none;
}

.problems-item {
  flex: none;
  display: flex;
  scroll-snap-align: start;
}

.problems-item .problem-card {
  scroll-snap-align: none;
}

.problem-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 0;
}

.problem-service {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.problem-role {
  white-space: nowrap;
}

.problem-role::before {
  content: "\00B7";
  margin-right: 10px;
}

.problem-title {
  margin: 0;
  font-size: clamp(1.375rem, 1.5vw, 1.625rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-wrap: balance;
}

.project-card-cta .problem-title {
  color: #F3F5F0;
}

.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

/* Same look as the service pills: white with a light border, darker border on hover. */
.problem-tags .polaris-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  transition: border-color 0.4s ease-in-out;
}

.problem-tags .polaris-pill:hover {
  border-color: #666666;
}

/* Controls: counter, real slider (the rail; the cube is its thumb) and previous / next. */
.problems-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.problems-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  /* No reserved width: the mono digits keep the counter the same width, so the gaps on both sides of the rail match. */
  white-space: nowrap;
}

.problems-counter-now {
  color: var(--text-main);
}

/* 44px hit area around a 2px line. */
.problems-rail {
  position: relative;
  flex: 1;
  height: 44px;
  cursor: pointer;
  touch-action: none;
  border-radius: 8px;
  outline: none;
}

.problems-rail:focus-visible {
  outline: 2px solid var(--accent-green-text);
  outline-offset: 2px;
}

.problems-rail-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(16, 16, 16, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.problems-rail-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent-green-bright);
}

.problems-cube {
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  transform-style: preserve-3d;
  transform: translateX(0) rotateX(-18deg) rotateY(32deg);
  cursor: grab;
}

.problems-cube .pc-face {
  border-color: var(--accent-green-text);
}

.problems-rail.is-dragging,
.problems-rail.is-dragging .problems-cube {
  cursor: grabbing;
}

.problems-buttons {
  display: flex;
  gap: 8px;
}

.problems-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) {
  .problems-button:hover:not([aria-disabled="true"]) {
    background: #101010;
    border-color: #101010;
    color: #FFFFFF;
  }
}

.problems-button:focus-visible {
  outline: 2px solid var(--accent-green-text);
  outline-offset: 2px;
}

.problems-button[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 767px) {
  .problems-track {
    gap: 16px;
  }

  .problem-title {
    font-size: 15px;
  }

  /* Narrow cards: the service name gets its own line, the reader's role goes under it. */
  .problem-meta {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .problem-service {
    flex: 1;
    white-space: normal;
  }

  .problem-role {
    order: 3;
    flex-basis: 100%;
    padding-left: 18px;
  }

  .problem-role::before {
    content: none;
  }

  .problems-controls {
    gap: 12px;
    margin-top: 24px;
  }

  .problems-counter {
    min-width: 0;
  }
}

/* ==========================================================================
   Process: vertical numbered steps after the horizontal Typical cases.
   Sticky preamble on the left; the line fills with the scroll and the active number turns lime
   (lime is a background here, #0F2400 ink on #C8F560: 13.11:1).
   ========================================================================== */

.process-section {
  padding-block: var(--section-space);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

/* Split layouts (heading beside content: Process, About, FAQ): one shared, slightly smaller H2 from tablet
   up, balanced lines, and a highlight that may wrap so it never runs into the next column. Phones keep the
   site-wide mobile H2 size. */
@media (min-width: 768px) {
  .process-preamble .section-heading-primary,
  .faq-preamble .section-heading-primary,
  .about-card .section-heading-primary {
    font-size: clamp(2.125rem, 3vw, 3rem);
  }
}

.process-preamble .section-heading-primary,
.faq-preamble .section-heading-primary,
.about-card .section-heading-primary {
  text-wrap: balance;
}

.process-preamble .section-heading-accent,
.faq-preamble .section-heading-accent,
.about-card .about-heading-accent {
  white-space: normal;
}

.process-preamble {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.process-track {
  position: relative;
}

.process-line {
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: var(--line-end, 28px);
  width: 2px;
  margin-left: -1px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.process-line-fill {
  position: absolute;
  inset: 0;
  transform-origin: center top;
  transform: scaleY(0);
  background: var(--accent-green-bright);
}

.process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.process-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 32px;
}

.process-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.is-done .process-num {
  border-color: var(--accent-green-text);
  color: var(--accent-green-text);
}

.process-step.is-active .process-num {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: var(--accent-lime-ink);
}

.process-title {
  margin: 12px 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.process-text {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Label above the text on every width: a long deliverable no longer squeezes beside the label. */
.process-deliverable {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-main);
}

.process-cta {
  margin-top: 48px;
  padding-left: 88px;
}

.process-deliverable-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green-text);
}

/* ==========================================================================
   Cooperation: one card per audience (stores, agencies). Plain surface cards, the content is the argument.
   ========================================================================== */

.cooperation-section {
  padding-block: var(--section-space);
}

.cooperation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cooperation-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 40px 40px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  /* A link to #sklepy or #agencje lands below the fixed header. */
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.cooperation-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green-text);
}

.cooperation-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.cooperation-text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.cooperation-list {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  list-style: none;
}

.cooperation-item {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 18px;
}

.cooperation-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green-bright);
}

.cooperation-item-title {
  font-weight: 700;
  color: var(--text-main);
}

.cooperation-item-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cooperation-cta {
  margin-top: auto;
  padding-top: 10px;
}

.cooperation-note {
  max-width: 72ch;
  margin-top: 24px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1023px) {
  .cooperation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .cooperation-card {
    padding: 28px 22px 30px;
  }
}

/* ==========================================================================
   About + Stack: a dark card (#101010, as the footer). Text on #101010: #FFFFFF 19.03:1, #E3E6EC 15.22:1, lime #C8F560 15.12:1, #B4BAC6 9.77:1, #A3AAB8 8.15:1.
   ========================================================================== */

.about-section {
  padding-block: var(--section-space);
}

.about-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px 80px;
  padding: 72px;
  border-radius: var(--radius-xl);
  background: #101010;
  color: #ECEEF2;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  isolation: isolate;
}

/* A faint lime glow in the corner, the card's only accent. */
.about-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -160px;
  top: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 245, 96, 0.14), transparent 65%);
  pointer-events: none;
}

.about-eyebrow {
  color: var(--accent-lime);
}

.about-title {
  color: #FFFFFF;
}

.about-heading-accent {
  color: var(--accent-lime);
  white-space: nowrap;
}

.about-lead {
  margin-bottom: 18px;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: #E3E6EC;
}

.about-text {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.7;
  color: #B4BAC6;
}

.about-text + .about-text {
  margin-top: 14px;
}

/* Who signs the section: name and role under the paragraphs, no portrait. */
.about-signature {
  margin-top: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

/* "[[phrase]]" on the dark card and in the footer reads in white. */
.about-card .accent,
.site-footer .accent {
  color: #FFFFFF;
}

.about-facts {
  grid-column: 1 / -1;
  display: grid;
  /* Wider columns for the legal name and the time zone, so all five read on one line at 1600px. */
  grid-template-columns: 1.3fr 1fr 0.85fr 1.05fr 1.45fr;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.about-fact {
  padding: 18px 20px;
  background: #101010;
}

.about-fact dt {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A3AAB8;
}

.about-fact dd {
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
}

.about-stack {
  padding-left: 56px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.about-stack-title {
  margin-bottom: 28px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.about-stack-group + .about-stack-group {
  margin-top: 26px;
}

.about-stack-group-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-lime);
}

.about-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.about-stack-note {
  margin-top: 26px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #B4BAC6;
}

.about-stack-list li {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #ECEEF2;
}

/* ==========================================================================
   FAQ: sticky preamble, accordion list (WAI-ARIA pattern, see components/faq.php).
   ========================================================================== */

.faq-section {
  padding-block: var(--section-space);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

.faq-preamble {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.faq-cta {
  margin-top: 28px;
}

.faq-cta-bottom {
  display: none;
  margin-top: 32px;
}

.faq-list {
  border-top: 1px solid var(--border-medium);
}

.faq-item {
  border-bottom: 1px solid var(--border-medium);
}

.faq-heading {
  margin: 0;
  font-size: inherit;
}

.faq-question {
  position: relative;
  display: flex;
  align-items: baseline; /* number and question share the first baseline; the icon is out of the flow (absolute) */
  gap: 24px;
  width: 100%;
  min-height: 40px;
  padding: 26px 64px 26px 0; /* right = icon width + gap */
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent-green-text);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Zero-padded ordinal in mono, the same voice as .process-num; green while the answer is open. */
.faq-num {
  flex: none;
  width: 40px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.faq-question-text {
  flex: 1 1 auto;
}

.faq-question[aria-expanded="true"] .faq-num {
  color: var(--accent-green-text);
}

/* Plus that turns into a minus on a lime block when the answer is open. */
.faq-icon {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

@media (hover: hover) {
  .faq-question:hover .faq-icon {
    border-color: var(--text-main);
  }
}

.faq-answer {
  overflow: hidden;
}

.faq-answer-inner {
  max-width: 68ch;
  padding: 0 64px 28px 64px; /* left = .faq-num width + .faq-question gap, so the answer lines up with the question text */
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 1199px) {
  .process-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .process-preamble,
  .faq-preamble {
    position: static;
  }

  .faq-cta-top {
    display: none;
  }

  .faq-cta-bottom {
    display: block;
  }

  .about-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 56px;
  }

  .about-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Five facts in three columns: the last one fills the row, so no empty cell shows the grey grid lines. */
  .about-fact:nth-child(3n + 2):last-child {
    grid-column: span 2;
  }

  .about-stack {
    padding-left: 0;
    padding-top: 40px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 767px) {
  .process-steps {
    gap: 40px;
  }

  .process-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
  }

  .process-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 0.8125rem;
  }

  .process-line {
    left: 22px;
    top: 22px;
    bottom: 22px;
  }

  .process-title {
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.3;
  }

  .process-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .process-deliverable {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .process-deliverable-label {
    font-size: 10px;
  }

  .process-cta {
    margin-top: 36px;
    padding-left: 62px;
  }

  .about-card {
    padding: 32px 22px;
    border-radius: var(--radius-lg);
  }

  .about-lead {
    font-size: 16px;
  }

  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Two columns: an odd last fact spans the row instead of leaving a grey empty cell. */
  .about-fact:nth-child(3n + 2):last-child {
    grid-column: auto;
  }

  .about-fact:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }

  .about-text {
    font-size: 13px;
  }

  .faq-question {
    gap: 8px;
    min-height: 36px;
    padding: 20px 44px 20px 0; /* right = icon width + gap */
    font-size: 15px;
  }

  .faq-icon {
    width: 36px;
    height: 36px;
  }

  .faq-num {
    width: 28px;
    font-size: 0.75rem;
  }

  .faq-answer-inner {
    padding-right: 0;
    padding-left: 0; /* on narrow screens the indent would cost too much width */
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-num,
  .faq-icon,
  .faq-icon::before,
  .faq-icon::after {
    transition: none;
  }
}

/* ==========================================================================
   Interaktywny Inspektor Architektury Shopify (One Live Thing)
   ========================================================================== */

.inspector-studio-section {
  padding-block: var(--section-space);
}

.inspector-studio-card {
  background: var(--bg-dark-studio);
  color: #ECEEF2;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.inspector-header-bar {
  height: 56px;
  background: #12151D;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inspector-dots {
  display: flex;
  gap: 8px;
}

.dot-unit {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-amber { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.inspector-scope-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #8C92A4;
}

.inspector-mode-switch {
  display: flex;
  gap: 8px;
}

.inspector-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #8C92A4;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inspector-tab-btn.active,
.inspector-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.inspector-body-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 480px;
}

.inspector-sidebar-nav {
  background: #0E1017;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entity-selector-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #A0A5B5;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.entity-selector-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

.entity-selector-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFF;
}

.entity-selector-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-shopify);
  color: #E8FCD9;
}

.inspector-display-pane {
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.display-title-group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.display-headline {
  font-size: 1.375rem;
  font-weight: 700;
}

.display-endpoint-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-lime);
  background: rgba(200, 245, 96, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

.code-terminal-box {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.84375rem;
  line-height: 1.6;
  color: #D6DAE4;
  overflow-x: auto;
}

.code-token-comment { color: #6E7688; }
.code-token-keyword { color: #B3F782; font-weight: 600; }
.code-token-string { color: #E8C78F; }
.code-token-property { color: #7EE787; }

.inspector-diagnostic-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #12151E;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84375rem;
  color: #8C92A4;
  margin-top: auto;
}

.diagnostic-status-good {
  color: #27C93F;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Sekcja Rozpoczecia Projektu (CTA & Inzynieria Wspolpracy)
   ========================================================================== */

.consultation-cta-section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--border-subtle);
}

.cta-banner-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 64px;
  box-shadow: var(--shadow-elevated);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 60px;
  align-items: center;
}

.cta-pitch-title {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-pitch-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-guarantees-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-guarantees-list li {
  padding-left: 28px;
  position: relative;
  font-size: 0.9875rem;
  color: var(--text-muted);
}

.cta-guarantees-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230034FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.cta-form-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.field-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-main);
  outline: none;
}

.field-input:focus {
  border-color: var(--accent-shopify);
}

/* ==========================================================================
   Stopka Huba
   ========================================================================== */

/* Footer: dark band (#101010), three columns split by thin lines, each ending with one line of small print.
   On #101010: #FFFFFF 19.03:1, #B4BAC6 9.77:1, #A3AAB8 8.15:1, lime #C8F560 15.12:1. */
.site-footer {
  /* Above the fixed WebGL canvas, like the section containers (z-index 10), so the dark band stays solid. */
  position: relative;
  z-index: 10;
  background: #101010;
  color: #FFFFFF;
  padding-block: 72px 0;
  overflow: hidden;
}

/* Oversized wordmark: 106vw wide so it runs off both sides, the box keeps ~80% of its height so the
   baseline is cut by the page bottom. Decorative only, a near-black tone on #101010. */
.footer-wordmark {
  height: calc(106vw * 213 / 1923 * 0.8);
  margin: clamp(56px, 8vw, 132px) 0 0 -3vw;
  width: 106vw;
  pointer-events: none;
  user-select: none;
}

.footer-wordmark-logo {
  display: block;
  width: 100%;
  height: auto;
  color: #1E1E1E;
}

.footer-wordmark-logo .logo-lime {
  fill: #1E1E1E;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 360px;
  padding-inline: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-col-brand {
  padding-left: 0;
  border-left: 0;
}

.footer-col:last-child {
  padding-right: 0;
}

.footer-brand {
  align-self: flex-start;
  color: #FFFFFF;
  text-decoration: none;
}

/* Footer wordmark on black: "clever" #FFFFFF (19.03:1 on #101010), "modules" lime #C8F560 (15.12:1). */
.footer-brand .brand-logo {
  height: 22px;
  color: #FFFFFF;
}

.footer-brand .brand-logo .logo-lime {
  fill: var(--accent-lime);
}

.footer-tagline {
  max-width: 34ch;
  margin-top: -16px;
  font-size: 0.9875rem;
  line-height: 1.55;
  color: #A3AAB8;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #A3AAB8;
}

.footer-guide,
.footer-address,
.footer-contact-link {
  display: block;
  max-width: 30ch;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.55;
  color: #FFFFFF;
  text-decoration: none;
}

.footer-address span {
  display: block;
}

.footer-tax {
  margin-top: 6px;
  color: #B4BAC6;
}

.footer-contact-link + .footer-contact-link {
  margin-top: 4px;
}

@media (hover: hover) {
  .footer-nav a:hover,
  .footer-guide:hover,
  .footer-contact-link:hover {
    color: var(--accent-lime);
  }
}

.footer-nav a:focus-visible,
.footer-guide:focus-visible,
.footer-contact-link:focus-visible,
.footer-brand:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Small print sits on the bottom edge of every column, so the three lines align. */
.footer-small {
  margin-top: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #A3AAB8;
}

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    min-height: 0;
    padding-left: 0;
    padding-top: 40px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-block: 56px 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .footer-col {
    min-height: 0;
    padding: 32px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .footer-col-brand {
    padding-top: 0;
    border-top: 0;
  }

  .footer-col:last-child {
    padding-top: 32px;
  }

  .footer-small {
    margin-top: 8px;
  }
}

/* ==========================================================================
   Responsywnosc (Mobile & Tablet)
   ========================================================================== */

/* Hero trust strip: three short promises pinned to the lower edge of the hero */
/* In flow at the end of the flex column: the pinned hero is position: fixed while pinned,
   so absolute positioning would resolve against the pin spacer instead of the visible hero. */
.hero-viewport > .container:first-child {
  margin-top: auto;
}

.container.hero-trust-wrap {
  margin-top: auto;
  padding-top: 32px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-trust-strip li.hero-trust-eu::before {
  display: none;
}

.hero-trust-strip .eu-header-pill {
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: var(--font-sans);
}

.hero-trust-strip li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green-bright);
}

/* "[[...]]" inside a trust item: the part that should carry the weight of the sentence. */
.hero-trust-strong {
  color: var(--text-main);
  font-weight: 700;
}

.btn-arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* MetaMover section */
.metamover-section {
  padding-block: var(--section-space);
}

.metamover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
}

.metamover-features {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.metamover-features li {
  position: relative;
  padding: 0 0 12px 28px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  line-height: 1.5;
}

.metamover-features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent-green-bright);
  border-bottom: 2px solid var(--accent-green-bright);
  transform: rotate(-45deg);
}

.metamover-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}

.metamover-status {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green-deep);
  background: var(--accent-lime);
  padding: 4px 10px;
  border-radius: 999px;
}

.metamover-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metamover-price-value {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metamover-price-interval,
.metamover-price-note {
  color: var(--text-muted);
}

.metamover-price-note {
  font-size: 0.9375rem;
  line-height: 1.55;
}


/* ==========================================================================
   Hero buttons: kinetic label roll; the filled button also gets a cursor spotlight
   --mx/--my: pointer position inside the button, --tx/--ty: magnetic offset (initButtonFx)
   ========================================================================== */
.btn-fx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px;
  --mx: 50%;
  --my: 50%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.btn-fx .btn-label,
.btn-fx .btn-arrow {
  position: relative;
  z-index: 1;
}

.btn-fx-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.btn-fx .btn-label {
  display: inline-block;
  overflow: hidden;
  line-height: 1.3;
  vertical-align: middle;
}

.btn-fx .btn-label-inner {
  display: block;
  position: relative;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}

/* --label-gap keeps the two copies apart, so descenders (y, p) of the outgoing label never peek
   over the top edge of the mask on hover. */
.btn-fx .btn-label-inner::after {
  content: attr(data-label);
  /* Empty alt text: screen readers read the label once, not twice. */
  content: attr(data-label) / "";
  position: absolute;
  left: 0;
  top: calc(100% + var(--label-gap, 0.5em));
}

.btn-fx:hover .btn-label-inner {
  transform: translateY(calc(-100% - var(--label-gap, 0.5em)));
}

.btn-fx.btn-shopify .btn-fx-fill {
  background: radial-gradient(130px circle at var(--mx) var(--my), rgba(111, 176, 23, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-fx.btn-shopify:hover {
  background: #101010;
  box-shadow: 0 4px 16px rgba(16, 16, 16, 0.28);
}

.btn-fx.btn-shopify:hover .btn-fx-fill {
  opacity: 1;
}

.btn-fx.btn-secondary:hover {
  border-color: #101010;
}

/* Every button with an arrow (filled or outline) gets the same shoot-through on hover. */
.btn-fx:hover .btn-arrow {
  animation: btn-arrow-shoot 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}

@keyframes btn-arrow-shoot {
  0% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(22px); opacity: 0; }
  55% { transform: translateX(-16px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.btn-fx:hover {
  transform: translate(var(--tx, 0), var(--ty, 0));
}

.btn-block {
  width: 100%;
  margin-top: 10px;
}

@media (hover: none) {
  .btn-fx:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.is-over-cube {
  cursor: pointer;
}

html.is-scroll-locked,
html.is-scroll-locked body {
  overflow: hidden;
}

/* ==========================================================================
   Header menu toggle + mobile drawer (pattern from bielak.local)
   ========================================================================== */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  color: var(--text-main);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}

.menu-mobile[data-state="open"] {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.menu-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(220, 220, 220, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.menu-mobile[data-state="open"] .menu-mobile-overlay {
  opacity: 1;
}

/* A rounded card 20px from the screen edges, sliding in from the left; the full width (minus the margins)
   on phones up to 499px, at most 400px on wider screens. */
.menu-mobile-panel {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  width: calc(100% - 40px);
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  outline: none;
  transform: translateX(calc(-100% - 24px));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 500px) {
  .menu-mobile-panel {
    max-width: 400px;
  }
}

.menu-mobile[data-state="open"] .menu-mobile-panel {
  transform: translateX(0);
}

.menu-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 6px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.menu-mobile-title {
  font-size: 0.9375rem;
  font-weight: 700;
}

.menu-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-main);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-mobile-close:hover {
  background: var(--bg-subtle);
}

.menu-mobile-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-mobile-nav ul {
  list-style: none;
}

.menu-mobile-nav li {
  border-bottom: 1px solid var(--border-subtle);
}

.menu-mobile-link {
  display: block;
  padding: 16px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
}

.menu-mobile-footer {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
}

.menu-mobile-footer .menu-mobile-cta {
  width: 100%;
}

html.has-menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .menu-mobile-panel,
  .menu-mobile-overlay {
    transition: none;
  }
}

/* ==========================================================================
   Responsywnosc. Breakpoints: phone up to 767, tablet 768-1199, desktop 1200+, wide 1400+, xl 1900+, wrapper 1900px from 1980.
   Checked at 260, 340, 420, 640, 768, 900, 1200, 1400, 1600, 1900, 1980 and 2400 px.
   Section spacing and gutters follow the space scale (.s--96: 96 / 64 / 56).
   ========================================================================== */

@media (min-width: 1900px) {
  :root {
    --gutter: 64px;
    --section-space: 128px;
  }
}

/* Wide monitors (2K and up): the wrapper grows from 1600 to 1900px, so the layout fills the screen instead of
   leaving two wide margins. Text measures inside sections keep their own max-widths (820 / 860px), only the
   grids and the browser windows in the services get the extra room. */
@media (min-width: 1980px) {
  :root {
    --container-max: 1900px;
  }
}

@media (max-width: 1599px) {
  /* Hero copy stays in the left half; the cube owns the right half. */
  .hero-panoramic-grid {
    grid-template-columns: minmax(0, min(860px, 50vw));
  }
}

@media (max-width: 1399px) {
  :root {
    --section-space: 64px;
  }
}

/* Full navigation from 1200px; up to 1359px there is no room for every item, the badge and the button on
   one line, so the badge waits until 1360px and nothing in the header is allowed to wrap. */
@media (min-width: 1200px) and (max-width: 1359px) {
  .header-nav .nav-list {
    gap: 24px;
  }

  .nav-anchor,
  .header-meta-actions .header-cta {
    white-space: nowrap;
  }

  .header-meta-actions .polaris-status-badge {
    display: none;
  }
}

@media (max-width: 1199px) {
  :root {
    --header-height: 70px;
    --gutter: 32px;
  }

  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-meta-actions {
    gap: 12px;
  }

  .header-meta-actions .btn {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 0.875rem;
  }

  .polaris-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .polaris-tile {
    padding: 32px 28px;
  }

  .cta-banner-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 48px;
  }

  .inspector-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inspector-sidebar-nav {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .inspector-display-pane {
    padding: 28px 32px;
  }

  .metamover-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-panoramic-grid {
    grid-template-columns: minmax(0, 860px);
  }

  .pillars-grid {
    gap: 32px;
  }

  .service-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 22px 4px;
  }

  .service-num {
    padding-top: 4px;
  }

  .service-title {
    font-size: 1.125rem;
  }

  .service-desc {
    font-size: 13px;
  }

  .service-arrow {
    display: none;
  }

  /* Projects on phones: no pin, the track becomes a swipeable row with scroll snap. */
  .projects-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .project-card {
    width: min(84vw, 360px);
    padding: 18px 18px 22px;
    scroll-snap-align: center;
  }

  .project-quote {
    font-size: 1.25rem;
  }

  .projects-progress {
    display: none;
  }

  .container.hero-trust-wrap {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px;
    --gutter: 16px;
    --section-space: 56px;
  }

  .header-meta-actions .polaris-status-badge {
    display: none;
  }

  /* Hero: the cube takes the upper part of the screen (lens shift in module-cluster.js), the copy sits below.
     The top padding is the minimum band kept free for the cube (220px under the header): with a lot of copy the
     hero grows instead of squeezing the cube. module-cluster.js centres the cube in the real free band. */
  .hero-viewport {
    min-height: 100svh;
    justify-content: flex-end;
    padding-top: calc(var(--header-height) + 220px);
    padding-bottom: 20px;
  }

  .hero-title-main {
    font-size: clamp(1.375rem, 6.4vw, 1.75rem);
    margin-bottom: 12px;
  }

  .hero-description-lead {
    margin-bottom: 20px;
  }

  .hero-actions-row {
    gap: 10px;
  }

  .hero-actions-row .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .scroll-cue {
    display: none;
  }

  .container.hero-trust-wrap {
    margin-top: 0;
    padding-top: 20px;
  }

  .hero-trust-strip {
    gap: 6px 16px;
    font-size: 0.6875rem;
  }


  .polaris-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .polaris-tile {
    padding: 24px 20px;
  }

  .metamover-card {
    padding: 24px 20px;
  }

  .metamover-card .btn {
    width: 100%;
    white-space: normal;
  }

  /* The long domain label may break anywhere instead of being clipped by the label roll mask. */
  .metamover-card .btn-label-inner {
    overflow-wrap: anywhere;
  }

  .inspector-header-bar {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .inspector-scope-label {
    display: none;
  }

  .inspector-sidebar-nav,
  .inspector-display-pane {
    padding: 20px 16px;
  }

  .display-title-group {
    flex-wrap: wrap;
    gap: 8px;
  }

  .display-endpoint-badge {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .code-terminal-box {
    padding: 16px;
    font-size: 0.75rem;
  }

  .inspector-diagnostic-strip {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cta-banner-wrapper {
    padding: 24px 20px;
    gap: 32px;
  }


  .cta-form-box {
    padding: 20px 16px;
  }

  .cta-form-box .btn {
    width: 100%;
  }

  /* Mobile type scale (as on bielak.local): 13px body copy, 12px pills and labels, smaller headings.
     Form fields keep 16px, below that iOS zooms in on focus. */
  body {
    font-size: 13px;
  }

  .section-subheading-lead {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-description-lead,
  .pillar-text,
  .tile-description,
  .metamover-features li,
  .metamover-price-interval,
  .metamover-price-note,
  .entity-selector-btn,
  .inspector-diagnostic-strip,
  .cta-pitch-text,
  .cta-guarantees-list li,
  .footer-tagline {
    font-size: 13px;
    line-height: 1.6;
  }

  .about-stack-list li {
    font-size: 11px;
  }

  /* Footer on phones: nothing above 14px. */
  .footer-nav a,
  .footer-address span,
  .footer-tax,
  .footer-contact-link {
    font-size: 14px;
  }

  /* Typical cases cards: the fix text and its pills one step smaller. */
  .project-solution p,
  .project-solution-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .problem-tags .polaris-pill,
  .project-tag {
    font-size: 11px;
  }

  .polaris-pill,
  .polaris-status-badge,
  .eu-header-label,
  .display-endpoint-badge,
  .pillar-kicker,
  .section-eyebrow,
  .tile-tag-kicker,
  .field-label {
    font-size: 12px;
  }

  .section-heading-primary,
  .cta-pitch-title {
    font-size: clamp(1.25rem, 5.6vw, 1.5rem);
    line-height: 1.25;
  }

  .pillar-title,
  .tile-title,
  .display-headline {
    font-size: 17px;
    line-height: 1.3;
  }

  .metamover-price-value {
    font-size: 2rem;
  }

  /* Buttons (bielak.local scale): 36px regular and in the header, 40px for the large hero/CTA ones. */
  .btn {
    min-height: 36px;
    padding: 6px 16px;
    font-size: 13px;
    gap: 8px;
  }

  .btn-lg {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .header-meta-actions .btn {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .btn-arrow {
    margin-left: 4px;
  }

  /* Intro on phones: page gutter, one-line HUD, progress bar on its own row above counter and skip. */
  .at-intro-stage {
    padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  }

  .at-telemetry-hud {
    font-size: 10px;
  }

  .at-hud-left {
    min-width: 0;
  }

  .at-hud-code,
  .at-hud-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .at-hud-right {
    display: none;
  }

  .at-narrative-container {
    min-height: 140px;
    margin-bottom: 24px;
  }

  .at-slide-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
  }

  /* Large enough to be the biggest text on screen: it is the first thing painted, so it stays the LCP
     element even when the hero copy appears after the intro. */
  .at-slide-title {
    font-size: clamp(2rem, 9.5vw, 2.5rem);
    margin-bottom: 0;
  }

  .at-progress-dock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px 16px;
  }

  .at-progress-track {
    grid-column: 1 / -1;
    order: -1;
  }

  .at-counter-wrap {
    min-width: 0;
  }

  .at-counter-value {
    font-size: 1rem;
  }

  .at-skip-btn {
    font-size: 11px;
    padding: 7px 14px;
  }
}

/* Short phones (iPhone SE and similar): a tighter hero so the cube keeps a usable band above the copy;
   the trust strip keeps only the EU badge (the other promises repeat lower on the page). */
@media (max-width: 767px) and (max-height: 760px) {
  .hero-title-main {
    margin-bottom: 10px;
  }

  .hero-description-lead {
    line-height: 1.5;
    margin-bottom: 16px;
  }

}

/* Narrow phones: both hero buttons stay on one line; the arrow goes so "Meet MetaMover" does not wrap. */
@media (max-width: 419px) {
  .hero-actions-row .btn {
    white-space: nowrap;
  }

  .hero-actions-row .btn-arrow {
    display: none;
  }

  /* Logo, button and menu toggle must share one row down to 360px: smaller logo and a tighter button. */
  .header-meta-actions .header-cta {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.8125rem;
  }

  .brand-logo {
    height: 14px;
  }
}

/* Very narrow phones: header keeps logo and menu only (the CTA is in the drawer), hero buttons stack. */
@media (max-width: 359px) {
  .header-meta-actions .header-cta {
    display: none;
  }

  .hero-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Section layout from data files (cm_section_layout() in data_loader.php)
   Each side is applied only when the section sets it (data-pt, data-pb, data-mt, data-mb);
   values are the spacing-scale columns from data/spacing.json, written as custom properties.
   ========================================================================== */

section[data-pt] { padding-top: var(--pt-mobile); }
section[data-pb] { padding-bottom: var(--pb-mobile); }
section[data-mt] { margin-top: var(--mt-mobile); }
section[data-mb] { margin-bottom: var(--mb-mobile); }

@media (min-width: 768px) {
  section[data-pt] { padding-top: var(--pt-tablet); }
  section[data-pb] { padding-bottom: var(--pb-tablet); }
  section[data-mt] { margin-top: var(--mt-tablet); }
  section[data-mb] { margin-bottom: var(--mb-tablet); }
}

@media (min-width: 1200px) {
  section[data-pt] { padding-top: var(--pt-laptop); }
  section[data-pb] { padding-bottom: var(--pb-laptop); }
  section[data-mt] { margin-top: var(--mt-laptop); }
  section[data-mb] { margin-bottom: var(--mb-laptop); }
}

@media (min-width: 1400px) {
  section[data-pt] { padding-top: var(--pt-desktop); }
  section[data-pb] { padding-bottom: var(--pb-desktop); }
  section[data-mt] { margin-top: var(--mt-desktop); }
  section[data-mb] { margin-bottom: var(--mb-desktop); }
}

/* ==========================================================================
   Contact: one form (components/contact-form.php) in the drawer (dark) and in the section above the
   footer (light), built on Basecoat UI (assets/vendor/basecoat/basecoat-forms.css, scoped to .bc).
   Only the Basecoat tokens are changed here, plus field height and the error line. Contrast, measured:
   light on #FFFFFF: text #0B0E14 19.6:1, muted #505664 7.4:1, field border #7A808C 3.96:1,
         error #B42318 6.56:1, focus border #101010 18.9:1.
         field border hover #505664 7.4:1.
   dark  on #101010: text #FFFFFF 19.03:1, muted #A3AAB8 8.15:1, field fill #1A1B1F (white text 17.2:1),
         field border #6B7180 3.9:1 (3.5:1 on the fill), hover #8A909C 5.93:1, checkbox border #8A909C
         5.93:1, error #FF8F80 8.6:1, focus lime #C8F560 15.12:1.
   Text levels (largest gap first): typed text 16px/400 white; labels and legends 14px/600 white; options
   15px/400 (light #2B2F36 13.4:1, dark #D0D4DB 12.8:1); consents 14px muted; hints, the notice and the draft
   note 13px quiet (light #5F6573 5.84:1, dark #8A909C 5.93:1). Group titles: 12px mono uppercase, muted.
   Focus on a text field is a solid 2px outline in the ring colour, also on a field with an error (the
   error border alone would hide where focus is, WCAG 2.4.7). Errors: one solid border colour, no glow.
   ========================================================================== */
.bc {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Reddit Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 0.75rem;
  --background: #FFFFFF;
  --foreground: #0B0E14;
  --primary: #101010;
  --primary-foreground: #FFFFFF;
  --muted-foreground: #505664;
  --border: rgba(11, 14, 20, 0.14);
  --input: #7A808C;
  --ring: #101010;
  --destructive: #B42318;
  /* Text fields (contact form overrides of Basecoat): fill, border, hover border. */
  --cf-fill: #FFFFFF;
  --cf-border: #7A808C;
  --cf-border-hover: #505664;
  /* Text levels: options (checkbox labels), quiet (hints, notice, draft note), the rule above the send group. */
  --cf-option: #2B2F36;
  --cf-quiet: #5F6573;
  --cf-rule: rgba(11, 14, 20, 0.12);
  /* Unchecked checkbox border (owner's choice on light; Basecoat's --input was heavier than the text fields). */
  --cf-check-border: #AAAAAA;
  /* Left rule beside the privacy notice above the send button. */
  --cf-privacy-rule: #EEEEEE;
  font-family: var(--font-sans);
  color: var(--foreground);
}

.bc.dark {
  --background: #101010;
  --foreground: #FFFFFF;
  --primary: var(--accent-lime);
  --primary-foreground: var(--accent-lime-ink);
  --muted-foreground: #A3AAB8;
  --border: rgba(255, 255, 255, 0.16);
  --input: #8A909C;
  --ring: var(--accent-lime);
  --destructive: #FF8F80;
  --cf-fill: #1A1B1F;
  --cf-border: #6B7180;
  --cf-border-hover: #8A909C;
  --cf-option: #D0D4DB;
  --cf-quiet: #8A909C;
  --cf-rule: #2A2A2A;
  --cf-check-border: var(--input);
  --cf-privacy-rule: #2A2A2A;
}

/* Unchecked boxes take the form's own border token; checked and focused states stay Basecoat's. */
.bc.bc .cform .field > input[type='checkbox']:not([role='switch']):not(:checked):not(:focus-visible) {
  border-color: var(--cf-check-border);
}

/* Three groups 28px apart (your project, where we reply, sending), fields 16px apart inside a group. */
.cform {
  display: grid;
  gap: 28px;
}

.bc .cform-group {
  display: grid;
  gap: 16px;
}

.bc .cform-group > .cform-group-title {
  float: left;
  width: 100%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* The sending group: a thin rule marks the fine print off from the fields. */
.cform-send {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--cf-rule);
}

/* Preflight is left out of the Basecoat build, so the browser fieldset frame is reset here. */
.bc fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bc legend {
  padding: 0;
}

.cform[hidden],
.cform-success[hidden] {
  display: none;
}

.cform-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Name, email and phone in one row once the form is 500px wide or more; email gets a little more room. */
.cform-wrap {
  container-type: inline-size;
}

@container (min-width: 500px) {
  .cform-row--3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.bc .field {
  gap: 8px;
}

/* Basecoat fields are 36px; 44px is easier to hit on touch screens. The doubled .bc outweighs
   Basecoat's long text-input selector. Text is 16px at every width (Basecoat drops to 14px from 768px;
   16px also keeps iOS from zooming in). */
.bc.bc .cform .field > :is(input:not([type='checkbox']):not([type='radio']), select) {
  height: 44px;
}

.bc.bc .cform .field > select {
  width: 100%;
  color: var(--foreground);
  cursor: pointer;
}

.bc.bc .cform .field > input::placeholder {
  color: var(--cf-quiet);
  opacity: 1;
}

.cform [data-field="found_via_detail"][hidden] {
  display: none;
}

.bc.bc .cform .field > :is(input:not([type='checkbox']):not([type='radio']), textarea, select) {
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--cf-fill);
  border-color: var(--cf-border);
  box-shadow: none;
  transition: border-color 0.2s ease, outline-color 0.2s ease;
}

.bc.bc .cform .field > :is(input:not([type='checkbox']):not([type='radio']), textarea, select):hover {
  border-color: var(--cf-border-hover);
}

.bc.bc .cform .field > :is(input:not([type='checkbox']):not([type='radio']), textarea, select):focus-visible {
  border-color: var(--ring);
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  box-shadow: none;
}

.bc.bc .cform .field > :is(input:not([type='checkbox']):not([type='radio']), textarea, select)[aria-invalid="true"],
.bc.bc .cform .field > :is(input:not([type='checkbox']):not([type='radio']), textarea, select)[aria-invalid="true"]:is(:hover, :focus-visible) {
  border-color: var(--destructive);
  box-shadow: none;
}

.bc .field > textarea {
  min-height: 88px;
  font-family: inherit;
}

/* Labels: 14px semibold, a step away from the 16px typed text; "(optional)" sits a word space after the
   label in fields and in the platform legend alike. */
.bc .cform .field:not([data-orientation]) > label,
.bc .cform-choices > legend {
  gap: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 20px;
}

.cform-optional {
  margin-left: 0.35em;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Quiet level: hints, the notice by the button, the draft note. */
.bc .cform .cform-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cf-quiet);
}

/* While the field shows an error, the error takes the hint's place instead of stacking under it. */
.bc .field[data-invalid] > .cform-hint {
  display: none;
}

/* Error line: the destructive colour plus an icon, so it does not rely on colour alone. */
.bc .field > .cform-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--destructive);
}

.bc .field > .cform-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--destructive);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 800;
}

.bc .field > .cform-error:empty {
  display: none;
}

/* .bc.bc plus the attribute: Basecoat zeroes the margin with .bc .fieldset > legend[data-variant='label'],
   which outranks a plain .bc .cform-choices > legend. */
.bc.bc .cform-choices > legend[data-variant='label'] {
  margin-bottom: 14px;
}

.cform-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
}

/* The whole row (box and label) is the click target, 28px high (WCAG 2.5.8 asks for 24px). */
.cform-checks .field > label {
  min-height: 28px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--cf-option);
  cursor: pointer;
}

.cform-checks .field > input {
  cursor: pointer;
}

/* Consents: smaller text, the box aligned to the first line; their unsubscribe note right under them. */
.cform-consents {
  display: grid;
  gap: 8px;
}

.bc .cform-consents-note {
  margin-top: 0;
}

.bc .cform-consents .field {
  align-items: flex-start;
}

.bc .cform-consents .field > input {
  margin-top: 3px;
  cursor: pointer;
}

.bc .cform-consents .field > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--cf-option); /* same level as the platform options; only the "Optional:" tag stays muted */
  cursor: pointer;
}

.bc .cform-consents label a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bc .cform-consents label a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.cform-optional-tag {
  font-weight: 600;
  color: #111111; /* light form: near-black, the weight alone sets it apart from the consent text */
}

.bc.dark .cform-optional-tag {
  color: var(--muted-foreground);
}

.bc .cform-privacy {
  margin-bottom: 24px;
  padding: 0 16px;
  border-left: 2px solid var(--cf-privacy-rule);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cf-quiet);
}

.bc .cform-privacy p {
  margin: 0;
}

.bc .cform-privacy a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bc .cform-privacy a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.cform-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform-alert:empty,
.bc .cform-summary:empty {
  display: none;
}

/* "Check the highlighted fields: 2." One quiet line with the error icon, not a box. */
.bc .cform-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--destructive);
}

.bc .cform-summary::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--destructive);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 800;
}

.cform-alert {
  padding: 12px 16px;
  border: 1px solid var(--destructive);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--destructive);
}

/* The draft note sits right under the button, left-aligned, so it reads as part of the send step. */
.cform-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* The reCAPTCHA badge is hidden: Google allows this when the notice with its links is shown in the form (.cform-recaptcha). */
.grecaptcha-badge {
  visibility: hidden;
}

.cform-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cf-quiet);
}

.cform[aria-busy="true"] .cform-submit {
  opacity: 0.7;
  cursor: progress;
}

.cform--dark .cform-submit.btn-shopify,
.cform--dark .cform-submit.btn-shopify:hover {
  background: var(--accent-lime);
  color: var(--accent-lime-ink);
  box-shadow: none;
}

.cform--dark .cform-submit .btn-fx-fill {
  background: radial-gradient(130px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.55), transparent 70%);
}

.cform--dark .cform-submit:focus-visible {
  outline-color: var(--accent-lime);
}

.cform-success {
  padding: 8px 0;
}

.cform-success-icon {
  display: block;
  width: 52px;
  height: 52px;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
}

.cform-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cform-success-title:focus {
  outline: none;
}

.cform-success-title:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

.cform-success-text {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.cform-again {
  min-height: 44px;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--foreground);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.cform-again:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

/* Section above the footer */
.contact-section {
  padding-block: var(--section-space);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

.contact-preamble {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

@media (min-width: 768px) {
  .contact-preamble .section-heading-primary {
    font-size: clamp(2.125rem, 3vw, 3rem);
  }
}

.contact-preamble .section-heading-primary {
  text-wrap: balance;
}

.contact-preamble .section-heading-accent {
  white-space: normal;
}

.contact-card {
  padding: 48px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: #FFFFFF;
  box-shadow: var(--shadow-elevated);
}

/* Drawer: the <dialog> fills the viewport; the overlay hides the whole page, the panel slides in from the right. */
html.has-contact-open {
  overflow: hidden;
}

.contact-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  overflow: hidden;
}

.contact-drawer::backdrop {
  background: transparent;
}

.contact-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(580px, 100%);
  padding: 28px 48px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #101010;
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.35);
}

.contact-drawer-eyebrow {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 28px;
  color: var(--accent-lime);
}

/* Lime on #101010: 15.1:1. */
.contact-drawer-accent {
  color: var(--accent-lime);
}

.contact-drawer-close {
  position: absolute;
  top: 28px;
  right: 38px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #FFFFFF;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-drawer-close:focus-visible,
.contact-drawer-title:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 3px;
}

.contact-drawer-title {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

/* Opened from a service row ("Ask about: <row title>"): the longer title at two thirds of the size. */
.contact-drawer-title.has-topic {
  font-size: clamp(1.1667rem, 1.6vw, 1.5rem);
  letter-spacing: -0.02em;
}

.contact-drawer-title:focus {
  outline: none;
}

.contact-drawer-lead {
  margin-bottom: 32px;
  color: #A3AAB8;
}

@media (max-width: 1199px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .contact-preamble {
    position: static;
  }
}

@media (max-width: 767px) {
  .contact-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .cform-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cform-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-drawer-panel {
    padding: 16px 16px 32px;
  }

  .contact-drawer-close {
    top: 16px;
    right: 6px;
  }

  .contact-drawer-eyebrow {
    margin-bottom: 20px;
  }

  .cform-submit {
    width: 100%;
  }
}

/* The steps and the direct contact belong to the wide layout only. */
.contact-drawer-extra {
  display: none;
}

/* Wide screens (1400px and up): a two-column panel, 72% of the screen (1120px at 1400, 1152px at 1600,
   1360px from 1890), still leaving a strip of the page so it reads as a drawer. Columns 5:7.
   Left (sticky aside #161616): eyebrow, title, "what happens next" in place of the lead, direct contact.
   Right: the form, full width of its column.
   Shared lines: the eyebrow and the first group title sit on the 40px top line; the title starts level with the
   first field. Spacing uses 8 / 12 / 16 / 24 / 32 / 48 only, kept tight enough for the whole form to fit
   a 900px high screen.
   Measured on #161616: white 18.1:1, steps #D0D4DB 12.2:1, mono labels #A3AAB8 7.75:1, lime 14.4:1; the 1px
   rules #2A2A2A are decorative. */
@media (min-width: 1400px) {
  .contact-drawer-panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    width: clamp(1120px, 72vw, 1360px);
    padding: 0;
  }

  .contact-drawer-close {
    top: 24px;
    right: 24px;
  }

  .contact-drawer-aside {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: 40px 56px;
    overflow-y: auto;
    background: #161616;
    border-right: 1px solid #2A2A2A;
  }

  .contact-drawer-eyebrow {
    min-height: 0;
    line-height: 16px;
    margin-bottom: 12px;
  }

  .contact-drawer-title {
    font-size: clamp(2.25rem, 2.6vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 0;
    text-wrap: balance;
  }

  .contact-drawer-title.has-topic {
    font-size: clamp(1.5rem, 1.7333vw, 1.8333rem);
    line-height: 1.2;
  }

  /* The steps say the same in the wide layout; the lead stays the dialog's description for screen readers. */
  .contact-drawer-lead {
    display: none;
  }

  .contact-drawer-extra {
    display: block;
  }

  .contact-drawer-label {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A3AAB8;
  }

  .contact-drawer-steps {
    margin-top: 48px;
  }

  .contact-drawer-steps ol {
    list-style: none;
    border-bottom: 1px solid #2A2A2A;
  }

  .contact-drawer-steps li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: baseline;
    padding-block: 14px;
    border-top: 1px solid #2A2A2A;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #D0D4DB;
  }

  .contact-drawer-step-no {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-lime);
  }

  .contact-drawer-direct {
    display: grid;
    gap: 8px;
    margin-top: 48px;
  }

  .contact-drawer-direct .contact-drawer-label {
    margin-bottom: 4px;
  }

  .contact-drawer-direct-link {
    justify-self: start;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #FFFFFF;
    /* Standalone links in their own block (not inside a sentence), so no underline at rest (WCAG 1.4.1
       is about links within text); hover turns them lime with an underline. */
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
  }

  .contact-drawer-direct-link:hover {
    color: var(--accent-lime);
    text-decoration-color: var(--accent-lime);
  }

  .contact-drawer-direct-link:focus-visible {
    outline: 2px solid var(--accent-lime);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .contact-drawer-main {
    padding: 40px 56px 40px 56px;
  }


  .contact-drawer .cform-submit {
    min-height: 52px;
    padding-inline: 28px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Language switcher (components/lang-switch.php): text only, no flags. Current language in full contrast
   with an underline (not colour alone), the other muted. Measured:
   header on #FFFFFF: current #101010 18.9:1, other #505664 7.4:1; focus ring #101010.
   footer on #101010: current #FFFFFF 19.03:1, other #A3AAB8 8.07:1; focus ring lime 15.12:1.
   ========================================================================== */
.lang-switch ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.lang-switch-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 6px;
  border-radius: 6px;
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s ease;
}

.lang-switch-link[aria-current="page"] {
  text-decoration-line: underline;
}

.lang-switch-sep {
  user-select: none;
}

.lang-switch--header .lang-switch-link,
.lang-switch--header .lang-switch-sep {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lang-switch--header .lang-switch-link[aria-current="page"],
.lang-switch--header .lang-switch-link:hover {
  color: #101010;
}

.lang-switch--header .lang-switch-link:focus-visible {
  outline: 2px solid #101010;
  outline-offset: 2px;
}

.lang-switch--footer {
  margin-top: -12px;
}

.lang-switch--footer .lang-switch-link,
.lang-switch--footer .lang-switch-sep {
  font-size: 0.9375rem;
  color: #A3AAB8;
}

.lang-switch--footer .lang-switch-link {
  padding: 0 8px;
}

.lang-switch--footer li:first-child .lang-switch-link {
  padding-left: 0;
}

.lang-switch--footer .lang-switch-link[aria-current="page"],
.lang-switch--footer .lang-switch-link:hover {
  color: #FFFFFF;
}

.lang-switch--footer .lang-switch-link:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 2px;
}

.lang-switch--menu .lang-switch-link,
.lang-switch--menu .lang-switch-sep {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.lang-switch--menu .lang-switch-link {
  min-height: 40px;
  padding: 0 8px;
}

.lang-switch--menu li:first-child .lang-switch-link {
  padding-left: 0;
}

.lang-switch--menu .lang-switch-link[aria-current="page"] {
  color: #101010;
  font-weight: 600;
}

.lang-switch--menu .lang-switch-link:focus-visible {
  outline: 2px solid #101010;
  outline-offset: 2px;
}

.footer-legal-link {
  color: #A3AAB8;
  text-underline-offset: 3px;
}

.footer-legal-link:hover {
  color: #FFFFFF;
}

.footer-legal-link:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* On the home page the header switcher moves into the mobile menu with the navigation. */
@media (max-width: 1199px) {
  .site-header .lang-switch--header {
    display: none;
  }
}

/* ==========================================================================
   Legal pages (privacy.php): plain reading layout, shared footer.
   ========================================================================== */
.legal-page {
  background: var(--bg-page);
}

.legal-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #101010;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

.legal-skip:focus {
  top: 16px;
}

.legal-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-subtle);
  background: #FFFFFF;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-main {
  position: relative;
  z-index: 10;
  padding-block: 72px 96px;
}

.legal-article {
  max-width: calc(760px + 2 * var(--gutter));
}

.legal-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.legal-title:focus {
  outline: none;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.legal-lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-section {
  padding-top: 36px;
}

.legal-section h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: #2B2F38;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 12px;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-article a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:focus-visible,
.legal-back:focus-visible {
  outline: 2px solid #101010;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 767px) {
  /* Phones: only the arrow shows; the text stays for screen readers (same clip as .sr-only). */
  .legal-back-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .legal-back {
    min-width: 44px;
    justify-content: center;
    font-size: 1.25rem;
  }

  .legal-header-actions {
    gap: 8px;
  }

  .legal-main {
    padding-block: 48px 72px;
  }
}

/* Phones: no trust strip in the hero (owner's decision, after the UX and CRO review). Its points come back lower
   down (pillars, About, Process, FAQ); the freed space goes to the cube. Same for short landscape phones. */
@media (max-width: 767px), (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .container.hero-trust-wrap {
    display: none;
  }
}

/* ==========================================================================
   Cookie banner (analytics/consent.php, assets/js/consent.js), ported from the bielak theme.
   Layout as on bielak: Settings and Accept all side by side, Reject all as a text button below.
   Contrast on #FFFFFF: text #0B0E14 19.6:1, muted #505664 7.4:1; buttons #101010 / white 18.9:1;
   checkbox border #7A808C 3.96:1; focus ring #101010.
   ========================================================================== */
.cookie-banner [hidden] {
  display: none;
}

.cookie-banner__bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: grid;
  gap: 16px;
  max-width: 520px;
  padding: 24px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 16px 48px rgba(11, 14, 20, 0.16);
  animation: ck-enter 0.5s ease-out backwards;
}

@keyframes ck-enter {
  from { opacity: 0; transform: translateY(120px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ck-leave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(120px); }
}

.cookie-banner__bar.is-leaving {
  animation: ck-leave 0.3s ease-in forwards;
}

.cookie-banner__title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cookie-banner__text {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cookie-banner__text a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cookie-banner__secondary {
  display: flex;
  justify-content: center;
  margin-top: -4px;
}

/* Reject all: a text button, 32px high, muted (#505664, 7.4:1) and underlined on hover. */
.cookie-banner__link {
  min-height: 32px;
  padding: 0 8px;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-banner__link:hover {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__link:focus-visible {
  outline: 2px solid #101010;
  outline-offset: 2px;
}

.cookie-btn {
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-btn--filled {
  color: #FFFFFF;
  background: #101010;
  border: 1px solid #101010;
}

.cookie-btn--filled:hover {
  background: #2B2D33;
}

.cookie-btn--outline {
  color: var(--text-main);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
}

.cookie-btn--outline:hover {
  border-color: #101010;
}

.cookie-btn:focus-visible,
.cookie-banner__close:focus-visible,
.cookie-banner a:focus-visible,
.cookie-banner summary:focus-visible,
.cookie-banner__switch input:focus-visible {
  outline: 2px solid #101010;
  outline-offset: 2px;
}

/* Settings panel: native modal dialog, full screen on phones, a centred card from 640px. */
.cookie-banner__panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
}

.cookie-banner__panel[open] {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.cookie-banner__panel::backdrop {
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cookie-banner__panel-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #FFFFFF;
  animation: ck-enter 0.4s ease-out backwards;
}

.cookie-banner__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
}

.cookie-banner__panel-body {
  flex: 1 1 auto;
  padding: 0 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cookie-banner__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  color: var(--text-main);
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.cookie-banner__close:hover {
  background: var(--bg-subtle);
}

.cookie-banner__categories {
  margin-bottom: 24px;
}

.cookie-banner__category {
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
}

.cookie-banner__switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner__switch label {
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner__switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  background: #FFFFFF;
  border: 1.5px solid #7A808C;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-banner__switch input[type="checkbox"]:hover {
  border-color: #101010;
}

.cookie-banner__switch input[type="checkbox"]:checked {
  background: #101010;
  border-color: #101010;
}

.cookie-banner__switch input[type="checkbox"]:checked::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cookie-banner__switch input[type="checkbox"][disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.cookie-banner__badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cookie-banner__category-text {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cookie-banner__details {
  margin-top: 8px;
  font-size: 0.8125rem;
}

.cookie-banner__details summary {
  display: inline-block;
  min-height: 32px;
  padding: 6px 0;
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-banner__items {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-left: 18px;
  color: var(--text-muted);
}

.cookie-banner__items span::before {
  content: " \00b7 ";
}

html.has-cookie-panel {
  overflow: hidden;
}

.footer-cookie-button {
  padding: 0;
  font: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

@media (min-width: 640px) {
  .cookie-banner__panel[open] {
    align-items: center;
    padding: 16px;
  }

  .cookie-banner__panel-inner {
    height: auto;
    max-width: 640px;
    max-height: 86vh;
    border-radius: var(--radius-lg);
  }

  .cookie-banner__panel-head {
    padding: 28px 32px 12px;
  }

  .cookie-banner__panel-body {
    padding: 0 32px 32px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner__bar,
  .cookie-banner__bar.is-leaving,
  .cookie-banner__panel-inner {
    animation: none;
  }
}

/* Legal links at the end of the last footer column: 24px high targets (WCAG 2.5.8). */
.footer-legal .footer-legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Separator between Privacy Policy and Cookie settings: a full bullet with room on both sides. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
}

.footer-legal-sep {
  font-size: 10px;
  line-height: 1;
  color: #FFFFFF;
}

/* Desktop: the language switcher closes column 1 on the same baseline as the legal links (column 2) and the
   copyright (column 3). Phones keep it right under the tagline. */
@media (min-width: 1200px) {
  .lang-switch--footer {
    margin-top: auto;
  }
}

/* Phones: 44px touch targets for Privacy Policy and Cookie settings; the footer language switch at 14px. */
@media (max-width: 767px) {
  .footer-legal .footer-legal-link {
    min-height: 44px;
  }

  .lang-switch--footer .lang-switch-link,
  .lang-switch--footer .lang-switch-sep {
    font-size: 14px;
  }
}

/* ==========================================================================
   Language suggestion (components/lang-suggest.php): a small dark note, bottom right (full width minus 16px on
   phones). It appears only after the cookie banner has been answered, so they never overlap.
   Measured on #101010: text #FFFFFF 19.03:1, button text #0F2400 on lime 13.1:1, close icon #FFFFFF.
   ========================================================================== */
.lang-suggest {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 10px 8px 10px 18px;
  color: #FFFFFF;
  background: #101010;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-suggest[hidden] {
  display: none;
}

.lang-suggest.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lang-suggest-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.lang-suggest .lang-suggest-accept {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-lime-ink);
  background: var(--accent-lime);
  border-radius: 10px;
  text-decoration: none;
}

.lang-suggest .lang-suggest-accept:focus-visible,
.lang-suggest-close:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 2px;
}

.lang-suggest-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #FFFFFF;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.lang-suggest-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .lang-suggest {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .lang-suggest-text {
    flex: 1;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-suggest {
    transition: none;
  }
}

/* Phones turned sideways (short landscape): the copy keeps the left part of the screen, the cube moves to the
   right half (module-cluster.js shifts the lens and scales it to the screen height). */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .hero-viewport {
    min-height: 100svh;
    justify-content: center;
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 16px;
  }

  .hero-panoramic-grid {
    grid-template-columns: minmax(0, 54vw);
  }

  .hero-title-main {
    font-size: clamp(1.375rem, 3.6vw, 2rem);
    margin-bottom: 10px;
  }

  .hero-description-lead {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-actions-row .btn {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 14px;
  }

  .scroll-cue,
  .header-meta-actions .polaris-status-badge {
    display: none;
  }
}

/*
 * Page transitions between the pages of the site (home, offer pages, legal pages). One method for every browser:
 * the inline script of cm_page_transitions_head() (asset_loader.php) puts .cm-leaving on <html> when a link to
 * another page of the site is clicked, waits for the fade, then navigates; the next page starts with .cm-arriving
 * and fades in. The page fades to white in 0.16s and the next one comes in from white in 0.3s, under half a
 * second in all: the short version of the exit on the old yazoo.pl landing, without its 3D scene.
 *
 * Opacity only: a transform on <body> would unpin the fixed header for the length of the fade.
 * Native cross-document view transitions are deliberately not used, so Chrome, Safari and Firefox behave alike.
 * Nothing moves with reduced motion.
 */
html.cm-leaving,
html.cm-arriving {
  background: #FFFFFF;
}

html.cm-leaving body {
  animation: cm-fade-out 0.16s ease-in both;
}

html.cm-arriving body {
  animation: cm-fade-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cm-fade-out {
  to { opacity: 0; }
}

@keyframes cm-fade-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.cm-leaving body,
  html.cm-arriving body {
    animation: none;
  }
}
