/* ==========================================================================
   SuperReklama — vizuálny redizajn
   Koncept: "REZACIA CESTA" (cut path)
   Všetko, čo firma vyrobí, začína ako rezacia cesta na plotri — prerušovaná
   kontúra a registračné značky sú preto nosným vizuálnym motívom stránky.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. PÍSMA — hosťované lokálne (bez závislosti na Google Fonts CDN)
   Archivo a Spline Sans Mono, obe pod licenciou SIL Open Font License 1.1.
   Podmnožina latin + latin-ext (latin-ext je nutná pre Š, Ž, Ľ, Ť, Ô).

   POZOR: Archivo má aj os šírky (wdth 62–125). Tu je zámerne zafixovaná na
   100 % (`font-stretch: 100%`) — práve roztiahnutie na 122 % robilo nadpisy
   neprirodzene široké. Silu nesie váha (až 900), nie šírka. Ak by sa písmo
   niekedy naťahovalo, hľadajte `font-variation-settings: 'wdth' …`.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/splinemono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/splinemono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   1. TOKENY
   -------------------------------------------------------------------------- */
:root {
  /* Plochy — teplý tmavý základ zhodný s pozadím značkovej favicony.
     --ink-rgb je ten istý odtieň v zložkách; používajú ho všetky priesvitné
     prekryvy a prechody, aby stačilo meniť farbu na jednom mieste. */
  --ink:        #201E1D;
  --ink-rgb:    32, 30, 29;
  --ink-raise:  #262423;
  --ink-card:   #2C2A28;
  --ink-card-2: #353230;

  /* Médium / substrát */
  --paper:      #F2F0ED;
  --paper-dim:  #A8A8AE;
  --paper-mute: #6E6E76;

  /* Značková červená — zhodná s červenou v logu (rgb 255,1,0) */
  --red:        #FF0000;
  --red-rgb:    255, 0, 0;
  --red-deep:   #CC0000;
  --red-glow:   rgba(var(--red-rgb), .28);

  /* Linky */
  --hair:       rgba(242, 240, 237, .10);
  --hair-soft:  rgba(242, 240, 237, .06);
  --hair-hard:  rgba(242, 240, 237, .20);

  /* Typografia */
  --font-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Modulárna jednotka (rovnaký princíp ako referenčná stránka) */
  --unit: 7.936vw;
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1560px;

  /* Krivky */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.65, 0, .35, 1);
  --ease-snap: cubic-bezier(1, 0, .01, 1);

  /* Rytmus sekcií */
  --sec-pad: clamp(88px, 12vw, 180px);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(15px, .5vw + 13px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

[hidden] { display: none !important; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAFIA
   -------------------------------------------------------------------------- */

/* Displejové písmo — kompaktný grotesk v ťažkej váhe. Silu nesie hmota
   a mierne stiahnutý prostrih, nie roztiahnutie písma do šírky. */
.display {
  font-weight: 850;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.02em;
  margin: 0;
}

.display--hero {
  font-size: clamp(2.7rem, 11vw, 12.5rem);
  /* Trochu vzduchu, aby si carony (Š) a dlžne (Á) nešli do cesty medzi riadkami */
  line-height: .96;
  letter-spacing: -.03em;
}

.display--sec {
  font-size: clamp(2.3rem, 7.2vw, 6.4rem);
  letter-spacing: -.025em;
}

.display--sm {
  font-size: clamp(1.4rem, 2.2vw, 2.15rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.015em;
}

/* Archivo má váhy od 100. Pri veľkosti nadpisu pôsobí 300 už krehko,
   400 drží kontrast voči 850 a zároveň nezaniká. */
.display .thin {
  font-weight: 400;
}

.display .red { color: var(--red); }

/* Obslužné písmo — technický popis, ako výpis z plotra */
.mono {
  font-family: var(--font-mono);
  font-size: clamp(10px, .34vw + 9px, 12px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .2em;
  line-height: 1.4;
}

.mono--dim { color: var(--paper-mute); }
.mono--red { color: var(--red); }

.lead {
  font-size: clamp(1rem, .55vw + .9rem, 1.28rem);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 62ch;
  font-weight: 400;
}

.body-txt {
  color: var(--paper-dim);
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--sec-pad); }
.section--raise { background: var(--ink-raise); }
.section--hair { border-top: 1px solid var(--hair-soft); }

/* Hlavička sekcie — spoločný vzor */
.sec-head {
  display: grid;
  gap: clamp(18px, 2.4vw, 34px);
  margin-bottom: clamp(44px, 6vw, 88px);
}

.sec-head__top {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--red);
}

.sec-head__lead { color: var(--paper-dim); max-width: 58ch; }

/* --------------------------------------------------------------------------
   5. PODPISOVÝ MOTÍV — registračné značky + rezacia kontúra
   -------------------------------------------------------------------------- */

/* Registračná značka (krížik v kruhu) — tlačiarenská pasovacia značka */
.reg {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.reg::before, .reg::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.reg::before { left: 50%; top: -5px; bottom: -5px; width: 1px; transform: translateX(-50%); }
.reg::after  { top: 50%; left: -5px; right: -5px; height: 1px; transform: translateY(-50%); }

/* Rezacia kontúra okolo prvku — prerušovaná červená čiara.
   SVG je nahradzovaný element s vlastnou prirodzenou veľkosťou (300×150),
   preto sa pri samotnom `inset` nenatiahne — rozmer treba zadať výslovne. */
.cutbox {
  position: relative;
  --cut-off: clamp(12px, 1.6vw, 26px);
}
/* Rámik je bežný blok — ten sa podľa `inset` natiahne spoľahlivo.
   SVG vo vnútri už len vyplní rodiča na 100 %. */
.cutbox__frame {
  position: absolute;
  inset: calc(-1 * var(--cut-off));
  pointer-events: none;
}
.cutbox__path {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cutbox__path rect {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.25;
  stroke-dasharray: 9 7;
  vector-effect: non-scaling-stroke;
}

/* Rohové značky rezu */
.cutbox__corner {
  position: absolute;
  width: 11px;
  height: 11px;
  color: var(--red);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.cutbox__corner::before, .cutbox__corner::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.cutbox__corner::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.cutbox__corner::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }

.cutbox__corner.tl { top: calc(-1 * var(--cut-off)); left: calc(-1 * var(--cut-off)); }
.cutbox__corner.tr { top: calc(-1 * var(--cut-off)); right: calc(-1 * var(--cut-off)); }
.cutbox__corner.bl { bottom: calc(-1 * var(--cut-off)); left: calc(-1 * var(--cut-off)); }
.cutbox__corner.br { bottom: calc(-1 * var(--cut-off)); right: calc(-1 * var(--cut-off)); }

/* Rezacia cesta v hero sa objaví až po nadpise a dashy sa rozbehnú */
.hero__cut {
  opacity: 0;
  transition: opacity .7s var(--ease-out) .85s;
}
.hero.is-live .hero__cut { opacity: 1; }
.hero__cut.cutbox__corner.tr { transition-delay: .95s; }
.hero__cut.cutbox__corner.br { transition-delay: 1.05s; }
.hero__cut.cutbox__corner.bl { transition-delay: 1.15s; }
/* "Bežiace" prerušenia — dojem živej rezacej cesty pod plotrom */
.cutbox__path rect { animation: cut-run 26s linear infinite; }

/* --------------------------------------------------------------------------
   6. UKAZOVATEĽ SKROLOVANIA (CSS scroll-driven, bez JS)
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 120;
  animation: progress-grow linear both;
  animation-timeline: scroll(root block);
}
@keyframes progress-grow { to { transform: scaleX(1); } }
@supports not (animation-timeline: scroll()) { .progress { display: none; } }

/* --------------------------------------------------------------------------
   7. NAVIGÁCIA
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .45s var(--ease-out), border-color .45s var(--ease-out),
              backdrop-filter .45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(var(--ink-rgb), .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--hair);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

/* Vodorovné logo v lište. Výška je pevná, šírka dopočítaná z pomeru strán —
   atribúty width/height v HTML držia miesto ešte pred načítaním obrázka. */
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  height: clamp(22px, 2vw, 28px);
  width: auto;
  display: block;
}

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: var(--paper-dim);
  padding-block: 6px;
  transition: color .3s var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: 2px;
}
.nav__burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--paper);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav__burger span + span { margin-top: 4px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobilná ponuka */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: 96px var(--gutter) 40px;
  display: grid;
  align-content: start;
  gap: 4px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-io);
  pointer-events: none;
}
.mnav.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }

.mnav__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--hair-soft);
  font-weight: 750;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.mnav.is-open .mnav__link { opacity: 1; transform: none; }
.mnav__link .n { font-family: var(--font-mono); font-size: 11px; color: var(--red); letter-spacing: .1em; }
.mnav__foot { margin-top: 28px; display: grid; gap: 6px; }
.mnav__foot a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--paper-dim); }

/* --------------------------------------------------------------------------
   8. TLAČIDLÁ
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad-y: 15px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: var(--btn-pad-y) 26px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out),
              transform .35s var(--ease-out);
}
.btn svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

/* Vyplnené — červená, s ťahom svetla pri prejazde */
.btn--fill { background: var(--red); color: #fff; }
.btn--fill::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--red-deep);
  transform: translateY(101%);
  transition: transform .5s var(--ease-io);
  z-index: -1;
}
.btn--fill:hover::before { transform: translateY(0); }

/* Obrysové */
.btn--line { border: 1px solid var(--hair-hard); color: var(--paper); }
.btn--line::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform .5s var(--ease-io);
  z-index: -1;
}
.btn--line:hover { color: var(--ink); border-color: var(--paper); }
.btn--line:hover::before { transform: translateY(0); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Textový odkaz so šípkou */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--red);
  padding-block: 4px;
  border-bottom: 1px solid var(--red-glow);
  transition: border-color .35s var(--ease-out);
}
.tlink svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.tlink:hover { border-color: var(--red); }
.tlink:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   9. HERO — 3D rezací stôl
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(28px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

/* Perspektívna podložka — materiál prechádzajúci rezacím stolom */
.bed {
  position: absolute;
  inset: 0;
  z-index: -2;
  perspective: 46vmin;
  perspective-origin: 50% 38%;
  overflow: hidden;
}

.bed__plane {
  position: absolute;
  left: -60%;
  right: -60%;
  top: 38%;
  bottom: -85%;
  transform: rotateX(74deg);
  transform-origin: 50% 0%;
  background-image:
    /* hrubé linky každých 5 polí */
    linear-gradient(to right,  var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px),
    /* jemný raster podložky */
    linear-gradient(to right,  var(--hair-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair-soft) 1px, transparent 1px);
  background-size: 24vmin 24vmin, 24vmin 24vmin, 4.8vmin 4.8vmin, 4.8vmin 4.8vmin;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 96%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 62%, transparent 96%);
  animation: bed-feed 9s linear infinite;
}
@keyframes bed-feed { to { background-position-y: 24vmin, 24vmin, 4.8vmin, 4.8vmin; } }

/* Žiara horizontu */
.bed__horizon {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 130vw;
  height: 52vh;
  transform: translate(-50%, -100%);
  background: radial-gradient(60% 100% at 50% 100%, var(--red-glow), transparent 72%);
  opacity: .5;
  filter: blur(6px);
}

/* Vinetácia, aby text vždy držal kontrast */
.bed__vig {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 100%, transparent 30%, rgba(var(--ink-rgb), .86) 100%),
    linear-gradient(to bottom, var(--ink) 0%, transparent 26%);
}

/* Vrstvy hera reagujúce na kurzor (3D parallax) */
.hero__stage {
  position: relative;
  transform-style: preserve-3d;
}
.hero__layer {
  transform: translate3d(calc(var(--mx, 0) * var(--depth, 6px)),
                         calc(var(--my, 0) * var(--depth, 6px)), 0);
  transition: transform .5s var(--ease-out);
  will-change: transform;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--red);
  /* Dosť miesta na to, aby horná rezacia kontúra nadpisu nekolidovala s textom */
  margin-bottom: clamp(34px, 4.8vw, 70px);
  --depth: 4px;
}
.hero__eyebrow .txt { color: var(--paper-dim); letter-spacing: .22em; }

.hero__title { --depth: 12px; }

/* Maska pre nábeh riadku. Horný padding je nutný, aby sa neodrezali
   slovenské diakritické znamienka (Š, Á, Ľ …) pri line-height < 1. */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-top: .16em;
  margin-top: -.16em;
}
.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.hero.is-live .hero__title .line > span { transform: translateY(0); }
.hero__title .line:nth-child(1) > span { transition-delay: .05s; }
.hero__title .line:nth-child(2) > span { transition-delay: .13s; }
.hero__title .line:nth-child(3) > span { transition-delay: .21s; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: end;
  gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(28px, 4vw, 54px);
}
.hero__copy { --depth: 6px; }
.hero__cta { margin-top: 26px; }

/* Štatistiky */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair-soft);
  border: 1px solid var(--hair-soft);
  border-radius: 2px;
  overflow: hidden;
  --depth: 4px;
}
.stat { background: var(--ink); padding: clamp(16px, 2vw, 26px); }
.stat__n {
  font-weight: 850;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.03em;
  display: flex;
  align-items: baseline;
}
.stat__n .plus { color: var(--red); }
.stat__l { color: var(--paper-mute); margin-top: 8px; }

/* Indikátor skrolovania */
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 52px);
  color: var(--paper-mute);
}
.hero__scroll .bar {
  position: relative;
  width: 54px; height: 1px;
  background: var(--hair-hard);
  overflow: hidden;
}
.hero__scroll .bar::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  animation: scroll-hint 2.4s var(--ease-io) infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   10. LOGÁ KLIENTOV — pás
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  padding-block: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--hair-soft);
  border-bottom: 1px solid var(--hair-soft);
  background: var(--ink);
  overflow: hidden;
}
.marquee__head {
  display: flex; justify-content: center;
  margin-bottom: clamp(22px, 3vw, 38px);
  color: var(--paper-mute);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-33.3333%); } }

.marquee__set { display: flex; align-items: center; flex: 0 0 auto; }
.marquee__set img {
  height: clamp(24px, 2.6vw, 34px);
  width: auto;
  margin-inline: clamp(24px, 3.4vw, 56px);
  object-fit: contain;
  opacity: .42;
  filter: grayscale(1) brightness(2.4);
  transition: opacity .4s var(--ease-out), filter .4s var(--ease-out);
}
.marquee__set img:hover { opacity: 1; filter: none; }

/* Zjemnenie okrajov pásu */
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(50px, 10vw, 150px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--ink), transparent); }

/* --------------------------------------------------------------------------
   11. SLUŽBY
   -------------------------------------------------------------------------- */
/* 340px ako minimum drží 3 stĺpce na bežných monitoroch — dlhé slovenské
   názvy ("Gravírovanie", "Veľkoformátová") sa tak zmestia bez zlomu. */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.svc {
  position: relative;
  padding: clamp(24px, 2.4vw, 36px);
  background: var(--ink-card);
  border: 1px solid var(--hair-soft);
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out),
              background .5s var(--ease-out);
}

/* 3D náklon podľa kurzora */
.svc.tilt {
  transform: perspective(900px)
             rotateX(calc(var(--ry, 0) * -3.6deg))
             rotateY(calc(var(--rx, 0) * 3.6deg))
             translateZ(0);
}
.svc:hover { border-color: var(--hair-hard); background: var(--ink-card-2); }

/* Rezacia kontúra, ktorá obkreslí kartu pri prejazde */
.svc::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  border: 1px dashed var(--red);
  border-radius: 2px;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.svc:hover::before { opacity: .85; }

@keyframes cut-run { to { stroke-dashoffset: -260; } }

/* Žiara zospodu */
.svc::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -60%;
  width: 130%; aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 100%, var(--red-glow), transparent 70%);
  opacity: 0;
  transition: opacity .55s var(--ease-out);
  z-index: -1;
}
.svc:hover::after { opacity: 1; }

.svc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 44px);
}
.svc__ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--red);
  background: rgba(var(--red-rgb), .05);
  transition: background .45s var(--ease-out), transform .45s var(--ease-out);
}
.svc__ico svg { width: 22px; height: 22px; }
.svc:hover .svc__ico { background: var(--red); color: #fff; transform: translateZ(24px); }

.svc__title {
  margin-bottom: 10px;
  /* Poistka pre veľmi úzke displeje. Delenie slov (hyphens) tu zámerne nie je —
     v nadpisoch produkovalo zlomy ako "VEĽKOFORMÁTO-VÁ". */
  overflow-wrap: break-word;
}
.svc__desc { color: var(--paper-dim); font-size: .95rem; }

.svc__specs {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hair-soft);
  display: grid;
  gap: 7px;
}
.svc__specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--paper-mute);
}
.svc__specs li::before {
  content: '';
  width: 5px; height: 5px;
  flex: 0 0 auto;
  background: var(--red);
  transform: rotate(45deg);
}

/* Karta s výzvou na akciu */
.svc--cta {
  background: var(--red);
  border-color: var(--red);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
.svc--cta:hover { background: var(--red-deep); border-color: var(--red-deep); }
.svc--cta::after { display: none; }
.svc--cta::before { border-color: #fff; }
.svc--cta .svc__title { color: #fff; }
.svc--cta .svc__desc { color: rgba(255, 255, 255, .82); }
.svc--cta .arrow {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: #fff;
  transition: background .4s var(--ease-out), transform .4s var(--ease-out);
}
.svc--cta .arrow svg { width: 20px; height: 20px; }
.svc--cta:hover .arrow { background: #fff; color: var(--red); transform: translateZ(26px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   12. PORTFÓLIO — bento
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: clamp(10px, 1.2vw, 18px);
}

/* Rozloženie 6 vybraných projektov — nepravidelný, redakčný raster */
.bento > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento > *:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.bento > *:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.bento > *:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.bento > *:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.bento > *:nth-child(6) { grid-column: span 2; grid-row: span 1; }

.pcard {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: var(--ink-card);
  border: 1px solid var(--hair-soft);
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  transform-style: preserve-3d;
  transition: border-color .5s var(--ease-out), transform .6s var(--ease-out);
}
.pcard.tilt {
  transform: perspective(1100px)
             rotateX(calc(var(--ry, 0) * -2.4deg))
             rotateY(calc(var(--rx, 0) * 2.4deg));
}
.pcard:hover { border-color: var(--hair-hard); }

.pcard__media { position: absolute; inset: 0; overflow: hidden; }
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease-out);
  filter: saturate(.85) contrast(1.04);
}
.pcard:hover .pcard__media img { transform: scale(1.11); filter: saturate(1.05) contrast(1.06); }

.pcard__shade {
  position: absolute; inset: 0;
  /* Fotky projektov sú rôzne svetlé (biele vizitky, svetlé weby), preto
     musí byť spodný prechod dosť silný, aby biely text vždy držal kontrast. */
  background: linear-gradient(to top, rgba(var(--ink-rgb), .96) 0%, rgba(var(--ink-rgb), .68) 38%, rgba(var(--ink-rgb), .10) 74%);
  transition: opacity .5s var(--ease-out);
}
.pcard:hover .pcard__shade { opacity: .92; }

.pcard__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: clamp(18px, 2vw, 28px);
  transform: translateZ(30px);
}
.pcard__cat {
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid var(--hair-hard);
  border-radius: 2px;
  background: rgba(var(--ink-rgb), .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out);
}
.pcard:hover .pcard__cat { background: var(--red); border-color: var(--red); color: #fff; }

.pcard__title {
  font-weight: 750;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.pcard__desc {
  color: var(--paper-dim);
  font-size: .9rem;
  max-width: 46ch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease-out), opacity .45s var(--ease-out);
}
.pcard:hover .pcard__desc { max-height: 5.2em; opacity: 1; }

/* Počet fotiek + lupa */
.pcard__count {
  position: absolute;
  top: clamp(14px, 1.6vw, 20px);
  right: clamp(14px, 1.6vw, 20px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 2px;
  background: rgba(var(--ink-rgb), .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--paper-dim);
  transform: translateZ(34px);
  transition: color .4s, border-color .4s;
}
.pcard__count svg { width: 13px; height: 13px; }
.pcard:hover .pcard__count { color: var(--paper); border-color: var(--hair-hard); }

.port-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 3.4vw, 48px);
  padding-top: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid var(--hair-soft);
}
.port-foot__n { display: flex; align-items: baseline; gap: 12px; }
.port-foot__n b {
  font-weight: 850;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.03em;
}

/* --------------------------------------------------------------------------
   13. REFERENCIE
   -------------------------------------------------------------------------- */
/* Sú presne štyri referencie, preto pevné počty stĺpcov (4 / 2 / 1).
   auto-fit by pri niektorých šírkach nechal štvrtú kartu osamotenú v rade. */
.refs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}
@media (min-width: 700px)  { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1220px) { .refs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ref {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--ink-card);
  border: 1px solid var(--hair-soft);
  border-radius: 3px;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), background .5s var(--ease-out);
}
.ref:hover { transform: translateY(-5px); border-color: var(--hair-hard); background: var(--ink-card-2); }

.ref__stars { display: flex; gap: 3px; color: var(--red); }
.ref__stars svg { width: 15px; height: 15px; }

.ref__quote {
  flex: 1;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.62;
}
.ref__quote::before { content: '\201E'; color: var(--red); }
.ref__quote::after  { content: '\201C'; color: var(--red); }

.ref__who { display: flex; align-items: center; gap: 13px; padding-top: 18px; border-top: 1px solid var(--hair-soft); }
.ref__ini {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(var(--red-rgb), .1);
  border: 1px solid var(--red-glow);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.ref__name { font-weight: 650; line-height: 1.25; }
.ref__role { color: var(--paper-mute); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; }

/* --------------------------------------------------------------------------
   14. MANIFEST — invertovaný pás
   -------------------------------------------------------------------------- */
.manifesto {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(72px, 10vw, 150px);
  position: relative;
  overflow: hidden;
}
/* Jemný raster aj na svetlom podklade */
.manifesto::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(var(--ink-rgb), .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--ink-rgb), .05) 1px, transparent 1px);
  background-size: 4.8vmin 4.8vmin;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 78%);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 78%);
}
.manifesto .wrap { position: relative; z-index: 1; }

.manifesto__q {
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(1.85rem, 6.2vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.035em;
  max-width: 20ch;
}
/* Preškrtnuté "PEKNÉ" — čiara sa dokreslí pri scrollovaní */
.manifesto__strike { position: relative; white-space: nowrap; }
.manifesto__strike::after {
  content: '';
  position: absolute;
  left: -.02em; right: -.02em;
  top: 52%;
  height: clamp(3px, .5vw, 8px);
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .8s var(--ease-io) .25s;
}
.manifesto.in .manifesto__strike::after { transform: scaleX(1); }
.manifesto__hit { color: var(--red); }

.manifesto__by {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 56px);
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid rgba(var(--ink-rgb), .14);
}
.manifesto__by .nm { font-weight: 650; }
.manifesto__by .rl { color: rgba(var(--ink-rgb), .55); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; }

/* --------------------------------------------------------------------------
   15. O NÁS
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 90px);
  align-items: start;
}
.about__story { display: grid; gap: 18px; }

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair-soft);
  border: 1px solid var(--hair-soft);
  border-radius: 3px;
  overflow: hidden;
}
.value {
  background: var(--ink-card);
  padding: clamp(20px, 2.2vw, 30px);
  transition: background .45s var(--ease-out);
}
.value:hover { background: var(--ink-card-2); }
.value__ico { color: var(--red); margin-bottom: 16px; }
.value__ico svg { width: 24px; height: 24px; }
.value__t { font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 7px; }
.value__d { color: var(--paper-dim); font-size: .9rem; }

.why {
  margin-top: clamp(34px, 4vw, 56px);
  padding-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--hair-soft);
}
.why__h { margin-bottom: 22px; }
.why__tags { display: flex; flex-wrap: wrap; gap: 9px; }
.why__tags li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--paper-dim);
  transition: border-color .4s var(--ease-out), color .4s var(--ease-out), background .4s var(--ease-out);
}
.why__tags li svg { width: 13px; height: 13px; color: var(--red); }
.why__tags li:hover { border-color: var(--red); color: var(--paper); background: rgba(var(--red-rgb), .07); }

/* --------------------------------------------------------------------------
   16. KONTAKT
   -------------------------------------------------------------------------- */
/* Štyri kontaktné karty — rovnaký dôvod pre pevné počty stĺpcov ako pri .refs */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}
@media (min-width: 620px)  { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 2.6vw, 38px);
  background: var(--ink-card);
  border: 1px solid var(--hair-soft);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), background .5s var(--ease-out);
}
.cc:hover { transform: translateY(-5px); border-color: var(--hair-hard); background: var(--ink-card-2); }

.cc__ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--red);
  margin-bottom: 18px;
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
}
.cc__ico svg { width: 19px; height: 19px; }
.cc:hover .cc__ico { background: var(--red); color: #fff; }

.cc__label { color: var(--paper-mute); }
.cc__val {
  font-weight: 700;
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  word-break: break-word;
}
a.cc__val:hover { color: var(--red); }
.cc__note { color: var(--paper-mute); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }

/* Adresný pás */
.addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: clamp(14px, 1.6vw, 22px);
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--hair-soft);
  border-radius: 3px;
  background: var(--ink-card);
}
.addr__i { display: flex; align-items: center; gap: 11px; color: var(--paper-dim); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.addr__i svg { width: 15px; height: 15px; color: var(--red); flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   17. PATIČKA
   -------------------------------------------------------------------------- */
.foot {
  background: var(--ink);
  border-top: 1px solid var(--hair-soft);
  padding-top: clamp(52px, 6vw, 88px);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 70px);
}
.foot__brand { display: grid; gap: 16px; align-content: start; justify-items: start; }

/* Štvorcová (skladaná) verzia loga v pätičke */
.foot__logo {
  width: clamp(150px, 15vw, 205px);
  height: auto;
  display: block;
}
.foot__tag { color: var(--paper-dim); max-width: 38ch; font-size: .95rem; }
.foot__quick { display: grid; gap: 7px; margin-top: 4px; }
.foot__quick a { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--paper-dim); transition: color .3s; }
.foot__quick a svg { width: 14px; height: 14px; color: var(--red); }
.foot__quick a:hover { color: var(--paper); }

.foot__h { color: var(--paper-mute); margin-bottom: 18px; }
.foot__list { display: grid; gap: 10px; }
.foot__list a {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--paper-dim);
  font-size: .93rem;
  transition: color .3s var(--ease-out), transform .3s var(--ease-out);
}
.foot__list a::before {
  content: '';
  width: 0; height: 1px;
  background: var(--red);
  transition: width .35s var(--ease-out);
}
.foot__list a:hover { color: var(--paper); }
.foot__list a:hover::before { width: 14px; }
.foot__list a svg { width: 15px; height: 15px; }

.foot__bar {
  margin-top: clamp(44px, 5vw, 72px);
  padding-block: 24px;
  border-top: 1px solid var(--hair-soft);
  display: grid;
  gap: 7px;
}
.foot__bar p { color: var(--paper-mute); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   18. GALÉRIA (lightbox)
   -------------------------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  /* minmax(0, 1fr) — inak by sa riadok roztiahol na prirodzenú výšku fotky
     a obrázok by prerástol okno namiesto toho, aby sa doň vmestil. */
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: clamp(14px, 2vw, 26px);
  background: rgba(var(--ink-rgb), .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
}
.lb.is-open { opacity: 1; visibility: visible; }

.lb__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.lb__meta { display: grid; gap: 6px; }
.lb__cat { color: var(--red); }
.lb__title { font-weight: 750; font-size: clamp(1.05rem, 2vw, 1.6rem); text-transform: uppercase; line-height: 1.1; letter-spacing: -.02em; }

.lb__close {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--hair);
  border-radius: 2px;
  transition: background .3s, border-color .3s, transform .3s;
}
.lb__close svg { width: 18px; height: 18px; }
.lb__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }

/* Percentuálne max-height sa v pružnom grid riadku nedá vyhodnotiť, preto je
   fotka absolútne umiestnená a zmenšuje sa cez object-fit: contain. */
.lb__stage { position: relative; min-height: 0; }
.lb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  animation: lb-in .5s var(--ease-out);
}
@keyframes lb-in { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: none; } }

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: rgba(var(--ink-rgb), .6);
  transition: background .3s, border-color .3s;
}
.lb__nav svg { width: 19px; height: 19px; }
.lb__nav:hover { background: var(--red); border-color: var(--red); }
.lb__nav--prev { left: 0; }
.lb__nav--next { right: 0; }

.lb__foot { display: grid; gap: 12px; justify-items: center; }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.lb__thumbs img {
  width: 62px; height: 46px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 2px;
  opacity: .4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .3s, border-color .3s;
}
.lb__thumbs img:hover { opacity: .8; }
.lb__thumbs img.is-active { opacity: 1; border-color: var(--red); }
.lb__counter { color: var(--paper-mute); }

/* --------------------------------------------------------------------------
   19. STRÁNKA PROJEKTOV
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-top: clamp(130px, 16vw, 210px);
  padding-bottom: clamp(40px, 5vw, 70px);
  overflow: hidden;
  isolation: isolate;
}
.page-head__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right,  var(--hair-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair-soft) 1px, transparent 1px);
  background-size: 4.8vmin 4.8vmin;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
          mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.page-head__bg::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 60vw; height: 40vh;
  background: radial-gradient(60% 80% at 20% 0%, var(--red-glow), transparent 70%);
  opacity: .55;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.filter {
  padding: 10px 18px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--paper-dim);
  transition: border-color .35s var(--ease-out), color .35s var(--ease-out),
              background .35s var(--ease-out);
}
.filter:hover { border-color: var(--hair-hard); color: var(--paper); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.proj-grid .pcard { min-height: clamp(260px, 30vw, 380px); }
.proj-grid .pcard.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   20. ODHAĽOVANIE PRI SCROLLOVANÍ (3D)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 34px, -60px) rotateX(9deg);
  transform-origin: 50% 100%;
  transition: opacity .85s var(--ease-out), transform .95s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* Postupné odhaľovanie mriežok */
[data-stagger] > * {
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 30px, -50px) rotateX(8deg);
  transform-origin: 50% 100%;
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
[data-stagger].in > * { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   21. RESPONZIVITA
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .about-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento > *:nth-child(1) { grid-column: span 2; grid-row: span 1; min-height: 300px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__cta { display: none; }
  .bed__plane { transform: rotateX(78deg); }
  .hero { min-height: auto; padding-top: 130px; padding-bottom: 60px; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *:nth-child(n) { grid-column: span 1; min-height: 260px; }
  .values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .lb__nav { width: 40px; height: 40px; }
  .hero__eyebrow .txt { letter-spacing: .14em; font-size: 9.5px; }
}

/* Nedotykové zariadenia — náklon má zmysel len s kurzorom */
@media (hover: none) {
  .svc.tilt, .pcard.tilt { transform: none; }
  .pcard__desc { max-height: 5.2em; opacity: 1; }
}

/* --------------------------------------------------------------------------
   22. OBMEDZENÝ POHYB
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal], [data-stagger] > * { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__layer { transform: none; }
  .svc.tilt, .pcard.tilt { transform: none; }
  .bed__plane { animation: none; }
  .marquee__track { animation: none; }
  .manifesto__strike::after { transform: scaleX(1); }
  .cutbox__corner { opacity: 1; }
  .progress { display: none; }
}

/* Tlač */
@media print {
  .nav, .mnav, .progress, .bed, .marquee, .lb, .hero__scroll { display: none !important; }
  body { background: #fff; color: #000; }
}
