/* Nábytok Šustek – návrh 5 „Ateliér“
   Farby vychádzajú z loga a z hotovej kuchyne: ľan, grafit, biely papier výkresu a dub.
   Písma: Cormorant Garamond (nadpisy) a Jost (text, popisky) – obe uložené lokálne, licencia SIL OFL.
   Pohyb robí GSAP (js/main.js). Bez JavaScriptu alebo pri vypnutom pohybe je stránka statická a úplná. */

/* ---------- Písma ---------- */
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  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: "Cormorant";
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  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: "Cormorant";
  src: url("../fonts/cormorant-italic-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
  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: "Cormorant";
  src: url("../fonts/cormorant-italic-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
  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: "Jost";
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  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: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  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;
}

/* ---------- Základ ---------- */
:root {
  --linen: #E9E2D8;        /* pozadie stránky */
  --linen-2: #DDD3C6;      /* podklad pod fotkami */
  --paper: #FAF8F4;        /* papier výkresu, svetlé plochy */
  --ink: #24221F;          /* text, linky */
  --ink-2: #5C554D;        /* druhoradý text (5,7 : 1 na ľane) */
  --line: rgba(36, 34, 31, .16);
  --line-2: rgba(36, 34, 31, .34);
  --oak: #A9773F;          /* dub – len ozdobne a pri veľkom písme */
  --oak-d: #855A28;        /* dub tmavší – drobný text (4,7 : 1 na ľane) */
  --oak-l: #D2A671;        /* dub na tmavom podklade */
  --night: #1E1D1B;        /* tmavé sekcie */
  --on-night: #EFE8DE;
  --on-night-2: #A9A096;

  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --gut: clamp(20px, 3.9vw, 64px);      /* okraj stránky */
  --hd-h: 76px;                          /* výška hlavičky */
  --ease: cubic-bezier(.19, 1, .22, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .22vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
em { font-style: italic; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

::selection { background: var(--ink); color: var(--linen); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.process :focus-visible, .ft :focus-visible, .lb :focus-visible { outline-color: var(--on-night); }

[id] { scroll-margin-top: calc(var(--hd-h) + 12px); }

.wrap {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--linen);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* drobný popisok verzálkami – ako písmo na výkrese */
.tag {
  display: flex;
  align-items: center;
  gap: .9em;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tag b { font-weight: 500; color: var(--oak-d); }
.tag i { display: block; width: 28px; height: 1px; background: currentColor; }

.lead { max-width: 34ch; color: var(--ink-2); font-size: 1.0625em; line-height: 1.55; }

/* tlačidlo: pri prejdení myšou ho zdola vyplní dub */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 30px;
  border: 0;
  background: var(--ink);
  color: var(--linen);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--oak-d);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn__in { display: inline-flex; align-items: center; gap: 12px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line::before { background: var(--ink); }

/* textový odkaz so šípkou */
.link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 6px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.link span { position: relative; padding-bottom: 5px; }
.link span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.link svg { width: 20px; height: 20px; flex: none; transition: transform .6s var(--ease); }

@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn--line:hover { color: var(--linen); }
  .link:hover span::after { transform: scaleX(.4); }
  .link:hover svg { transform: translateX(6px); }
}

/* kóta – rozmerová čiara s popiskom, oddeľuje časti stránky */
.kota {
  position: relative;
  display: flex;
  justify-content: center;
  height: 22px;
  background: linear-gradient(var(--line-2), var(--line-2)) left center / 100% 1px no-repeat;
}
.kota::before, .kota::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 1px; height: 14px;
  background: var(--ink-2);
  transform: rotate(45deg);
}
.kota::before { left: 0; }
.kota::after { right: 0; }
.kota span {
  padding-inline: 20px;
  background: var(--linen);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 22px;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* nadpis sekcie */
.head { display: grid; gap: clamp(18px, 2vw, 28px); margin-bottom: clamp(44px, 6vw, 96px); }
.head h2 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 7vw, 7rem);
  line-height: .96;
  letter-spacing: -.02em;
}
.head--wide h2 { max-width: 16ch; }

/* riadky nadpisov pri animácii (SplitText): maska nesmie odrezať mäkčene ani chvosty písmen */
.ln-mask { padding: .14em .08em .16em; margin: -.14em -.08em -.16em; }

/* ---------- Úvodná opona ---------- */
.loader { display: none; }
.motion .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--on-night);
}
.loader__in { display: grid; justify-items: center; gap: 18px; }
.loader__logo, .loader__name, .loader__sub { opacity: 0; }      /* ukáže ich skript – bez prebliknutia */
.loader__logo { width: 84px; height: 84px; border-radius: 50%; }
.loader__name { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.loader__rule { width: 180px; height: 1px; background: rgba(239, 232, 222, .2); overflow: hidden; }
.loader__rule i { display: block; height: 100%; background: var(--oak-l); transform: scaleX(0); transform-origin: left; }
.loader__sub { font-size: .7rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--on-night-2); }

/* ---------- Hlavička ---------- */
.hd {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--hd-h);
  transition: transform .6s var(--ease), background-color .4s ease, box-shadow .4s ease;
}
.hd.is-solid {
  background: rgba(233, 226, 216, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.hd.is-hidden { transform: translateY(-101%); }
/* bez JavaScriptu hlavička neroluje so stránkou (nemala by podklad) a tlačidlo menu nemá čo otvoriť */
html:not(.js) .hd { position: absolute; }
html:not(.js) .hd__burger { display: none; }

.hd__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding-inline: var(--gut);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; }
.brand__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }

.hd__nav ul { display: flex; gap: clamp(22px, 2.8vw, 48px); }
.hd__nav a {
  display: block;
  padding-block: 10px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hd__nav span { position: relative; display: block; }
.hd__nav span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
@media (hover: hover) {
  .hd__nav a:hover span::after { transform: scaleX(1); transform-origin: left; }
}

.hd__tel {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding-inline: 20px;
  box-shadow: inset 0 0 0 1px var(--ink);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: background-color .4s ease, color .4s ease;
}
.hd__tel svg { width: 17px; height: 17px; }
@media (hover: hover) {
  .hd__tel:hover { background: var(--ink); color: var(--linen); }
}

.hd__burger {
  display: none;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 0 0 8px;
  border: 0;
  background: none;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.hd__burger-ico { position: relative; display: block; width: 28px; height: 12px; }
.hd__burger-ico i {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .5s var(--ease);
}
.hd__burger-ico i:first-child { top: 2px; }
.hd__burger-ico i:last-child { bottom: 2px; }
[aria-expanded="true"] .hd__burger-ico i:first-child { transform: translateY(3.5px) rotate(24deg); }
[aria-expanded="true"] .hd__burger-ico i:last-child { transform: translateY(-3.5px) rotate(-24deg); }

/* ---------- Menu (mobil, tablet) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--hd-h) + 5vh) var(--gut) 32px;
  background: var(--linen);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__nav li { border-bottom: 1px solid var(--line); overflow: hidden; }
.menu__nav li:first-child { border-top: 1px solid var(--line); }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 16px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 10.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.menu__nav b {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--oak-d);
}
.menu__foot { display: grid; gap: 6px; margin-top: 40px; color: var(--ink-2); }
.menu__foot a:first-child { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ink); line-height: 1.2; }

/* ---------- Úvod ---------- */
.hero {
  position: relative;
  --pad: clamp(16px, 3.4vh, 38px);
  --cap: 40px;                  /* miesto pre popis pod výkresom */
  --hgap: clamp(18px, 2.6vw, 44px);
  --sheet-h: min(calc(100vh - var(--hd-h) - var(--pad) * 2 - var(--cap)), 50vw);
  --sheet-h: min(calc(100svh - var(--hd-h) - var(--pad) * 2 - var(--cap)), 50vw);
  --sheet-w: calc(var(--sheet-h) * .75);
  --seal: clamp(104px, 9.4vw, 146px);
  overflow: hidden;
  overflow: clip;
}

.hero__pin {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sheet-w) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--hgap);
  height: 100vh;
  height: 100svh;
  padding: calc(var(--hd-h) + var(--pad)) var(--gut) var(--pad);
}

.hero__eyebrow { grid-column: 1; grid-row: 1; align-self: start; padding-top: 4px; }

/* Nadpis: slovo vľavo a slovo vpravo od výkresu. Pri rolovaní sa v oboch „okienkach“ slová menia. */
.hero__title {
  position: absolute;
  left: var(--gut); right: var(--gut);
  top: calc(var(--hd-h) + var(--pad) + var(--sheet-h) * .42);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sheet-w) minmax(0, 1fr);
  column-gap: var(--hgap);
  align-items: center;
  transform: translateY(-50%);
  font-size: var(--hero-fs, clamp(2.6rem, 6.4vw, 7rem));
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.022em;
  pointer-events: none;
  text-wrap: nowrap;
}
.slot {
  display: grid;
  padding: .2em .1em .24em;
  margin: -.2em -.1em -.24em;
  overflow: hidden;
  overflow: clip;
}
.slot--l { grid-column: 1; justify-self: end; justify-items: end; }
.slot--r { grid-column: 3; justify-self: start; justify-items: start; font-style: italic; }
.slot__w { grid-area: 1 / 1; display: block; width: max-content; white-space: nowrap; }
.slot__w .ch { display: inline-block; will-change: transform; }

/* Výkres */
.sheet {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  width: var(--sheet-w);
  z-index: 1;
}
.sheet__paper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(36, 34, 31, .07), 0 40px 70px -40px rgba(36, 34, 31, .42), 0 14px 26px -20px rgba(36, 34, 31, .3);
}
.sheet__paper img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* pri animácii fotku ukazuje skript: --ph = viditeľnosť, --ph-s = jemné zväčšenie */
.motion .sheet__paper img { opacity: var(--ph, 0); transform: scale(var(--ph-s, 1)); }

/* orezové značky v rohoch výkresu */
.sheet__mark { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.sheet__mark::before, .sheet__mark::after { content: ""; position: absolute; background: var(--line-2); }
.sheet__mark::before { left: 0; bottom: 0; width: 13px; height: 1px; }
.sheet__mark::after { right: 0; top: 0; width: 1px; height: 13px; }
.sheet__mark--a { left: -22px; top: -22px; }
.sheet__mark--b { right: -22px; top: -22px; transform: scaleX(-1); }
.sheet__mark--c { right: -22px; top: calc(var(--sheet-w) * 4 / 3); transform: scale(-1); }
.sheet__mark--d { left: -22px; top: calc(var(--sheet-w) * 4 / 3); transform: scaleY(-1); }

/* popis leží medzi spodnými orezovými značkami, v ich výške */
.sheet__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 13px;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Pečať s logom */
.seal {
  position: absolute;
  right: calc(var(--seal) * -.4);
  top: calc(var(--sheet-w) * 4 / 3 * .7);
  z-index: 3;
  width: var(--seal);
  height: var(--seal);
}
.seal__ring { width: 100%; height: 100%; overflow: visible; }
.seal__disc { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.seal__ring text {
  font-family: var(--sans);
  font-size: 12.6px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  fill: var(--ink);
}
.seal__logo {
  position: absolute;
  left: 19%; top: 19%;
  width: 62%; height: 62%;
  border-radius: 50%;
}
.seal__wave {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.motion .seal { opacity: 0; visibility: hidden; }

/* Fázy animácie vpravo hore */
.phases {
  grid-column: 3; grid-row: 1;
  justify-self: end;
  display: grid;
  gap: 9px;
  padding-top: 4px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.phases li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(36, 34, 31, .42);
  transition: color .5s ease;
}
.phases li::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--oak);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--ease);
}
.phases b { font-weight: 500; }
.phases li.is-on { color: var(--ink); }
.phases li.is-on::before { transform: none; }
.phases li.is-on b { color: var(--oak-d); }
.phases li.is-done { color: var(--ink-2); }

/* Veta k fáze a nápoveď vpravo dole */
.hero__note {
  grid-column: 3; grid-row: 2;
  align-self: end;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 22px;
  padding-bottom: var(--cap);
  text-align: right;
}
.hero__note-txt { max-width: 25ch; color: var(--ink-2); font-size: .98em; line-height: 1.5; text-wrap: balance; }
.hero__hint {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__hint i {
  display: block;
  width: 1px; height: 38px;
  background: var(--ink);
  animation: hint 2.2s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
html:not(.motion) .phases, html:not(.motion) .hero__note, .hero.is-static .phases, .hero.is-static .hero__note { display: none; }

/* Text a tlačidlá vľavo dole */
.hero__lead {
  position: absolute;
  left: var(--gut);
  bottom: calc(var(--pad) + var(--cap));
  z-index: 2;
  width: min(23rem, calc((100vw - var(--sheet-w)) / 2 - var(--gut) - var(--hgap)));
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(18px, 3vh, 30px); }

/* Scéna animácie leží presne na fotke (js/scena.js) */
.scena { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scena__fx, .scena__pc { position: absolute; left: 0; top: 0; display: block; }
.scena__pc { transform-origin: 0 0; will-change: transform, opacity; }
.scena__pc--photo { background: no-repeat center / cover; }
.scena__sketch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.scena__sketch path { fill: none; stroke: var(--ink); stroke-linecap: butt; stroke-linejoin: round; }
.scena__sketch .sk-c { stroke: var(--ink-2); }
.scena__sketch .sk-g { stroke: rgba(92, 85, 77, .55); }       /* konštrukčné čiary perspektívy */
.scena__sketch .sk-pen { fill: var(--oak-d); opacity: 0; }    /* hrot pera */
.scena__sketch text {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  fill: var(--ink-2);
}

/* ---------- Vyhlásenie a tri fakty ---------- */
.manifest { padding-block: clamp(80px, 11vw, 170px) clamp(50px, 6vw, 96px); }
.manifest__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
  gap: 24px;
  margin-top: clamp(56px, 8vw, 120px);
}
.manifest__tag { align-self: start; padding-top: 1.5em; }
.manifest__text {
  max-width: 15.5em;
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -.016em;
  text-wrap: pretty;
}
.manifest__text em { color: var(--oak-d); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 9vw, 130px);
  border-top: 1px solid var(--line-2);
}
.fact { padding: clamp(22px, 2.4vw, 34px) clamp(20px, 3vw, 48px) 0; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact__n { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--oak-d); }
.fact h3 { margin-top: clamp(36px, 5vw, 72px); font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: 1.08; letter-spacing: -.01em; }
.fact p:last-child { margin-top: 12px; max-width: 30ch; color: var(--ink-2); }

/* ---------- Čo vyrábame ---------- */
.services { padding-block: clamp(70px, 9vw, 140px) clamp(90px, 12vw, 180px); }
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6.5vw, 120px);
  align-items: start;
}
.services__view { position: relative; }
.services__frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--linen-2); }
.services__frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.services__frame img.is-on { opacity: 1; }
.motion .services__frame img { opacity: 1; transition: none; will-change: clip-path, transform; }
.services__count { justify-content: space-between; padding-top: 16px; }
.services__count b { color: var(--ink); }

.services__list { border-top: 1px solid var(--ink); }
.service {
  display: grid;
  grid-template-columns: clamp(44px, 5vw, 84px) minmax(0, 1fr);
  padding-block: clamp(24px, 2.7vw, 40px);
  border-bottom: 1px solid var(--line);
}
.service__n {
  padding-top: 1.05em;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--oak-d);
}
.service h3 {
  font-size: clamp(2.1rem, 3.9vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.018em;
  transition: transform .8s var(--ease), color .6s ease;
}
.service p { grid-column: 2; margin-top: 14px; max-width: 42ch; color: var(--ink-2); transition: transform .8s var(--ease); }
/* neaktívne riadky majú nadpis svetlejší (stále čitateľný, 3 : 1), popis ostáva v plnej farbe */
.js .service h3 { color: rgba(36, 34, 31, .52); }
.js .service.is-on h3 { color: var(--ink); }
.js .service.is-on h3, .js .service.is-on p { transform: translateX(clamp(8px, 1.2vw, 20px)); }

/* ---------- Realizácie ---------- */
.works { position: relative; background: var(--paper); overflow: hidden; }
.works__pin {
  position: relative;
  --wh: clamp(260px, calc(100vh - var(--hd-h) - 9vh - 250px), 620px);      /* výška fotky */
  --wh: clamp(260px, calc(100svh - var(--hd-h) - 9svh - 250px), 620px);
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-top: var(--hd-h);
  padding-bottom: 64px;
}
.works__row { display: flex; align-items: center; width: max-content; will-change: transform; }
.works__intro { flex: none; display: grid; gap: clamp(18px, 2vw, 28px); width: min(40vw, 600px); padding-left: var(--gut); padding-right: 3vw; }
.works__intro h2 { font-size: clamp(2.9rem, 6.4vw, 6.4rem); line-height: .96; letter-spacing: -.02em; }
.works__swipe { margin-top: clamp(12px, 3vh, 40px); color: var(--ink); }
.works__swipe svg { width: 22px; height: 22px; }

.works__track { display: flex; align-items: flex-start; gap: clamp(26px, 3.6vw, 64px); padding-right: var(--gut); }
.work { flex: none; width: calc(var(--wh) * .75); }
.work:nth-of-type(even) { margin-top: 9vh; }
.work__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--linen-2); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work__meta { display: grid; gap: 8px; padding-top: 18px; }
.work__meta h3 { font-size: clamp(1.6rem, 2.1vw, 2.15rem); line-height: 1.08; letter-spacing: -.012em; }
.work__meta p:last-child { max-width: 32ch; color: var(--ink-2); font-size: .95em; line-height: 1.5; }
@media (hover: hover) {
  .work__open:hover img { transform: scale(1.04); }
}

.works__end { flex: none; align-self: center; display: grid; justify-items: start; gap: 26px; width: min(36vw, 480px); padding-left: 2vw; }
.works__end-txt { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.4rem); font-weight: 500; line-height: 1.04; letter-spacing: -.016em; text-wrap: balance; }
.works__end-txt em { color: var(--oak-d); }
.works__social { display: grid; justify-items: start; gap: 6px; }

.works__bar {
  position: absolute;
  left: var(--gut); right: var(--gut);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.works__bar-n b { color: var(--ink); }
.works__bar-line { flex: 1; height: 1px; background: var(--line); }
.works__bar-line i { display: block; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* Bez vodorovného posunu (mobil, tablet, vypnutý pohyb, nízke okno): fotky sa posúvajú prstom */
.works:not(.is-horizontal) .works__pin { display: block; height: auto; padding-block: clamp(70px, 10vw, 130px); --wh: clamp(300px, 62vh, 520px); }
.works:not(.is-horizontal) .works__row { display: block; width: auto; }
.works:not(.is-horizontal) .works__intro { width: auto; padding-right: var(--gut); margin-bottom: clamp(32px, 5vw, 56px); }
.works:not(.is-horizontal) .works__track {
  padding-inline: var(--gut);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.works:not(.is-horizontal) .works__track::-webkit-scrollbar { display: none; }
.works:not(.is-horizontal) .work { width: min(76vw, 360px); scroll-snap-align: start; margin-top: 0; }
.works:not(.is-horizontal) .works__end { scroll-snap-align: start; align-self: flex-start; width: min(78vw, 400px); padding: 0 var(--gut) 0 0; }
.works:not(.is-horizontal) .works__bar { display: none; }
.works.is-horizontal .works__swipe { display: none; }

/* široké okno bez vodorovného posunu (vypnutý pohyb, vypnutý JavaScript): fotky v mriežke */
@media (min-width: 900px) {
  .works:not(.is-horizontal) .works__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(40px, 5vw, 72px) clamp(26px, 3.6vw, 64px);
    overflow: visible;
  }
  .works:not(.is-horizontal) .work { width: auto; }
  .works:not(.is-horizontal) .works__end { grid-column: 1 / -1; width: auto; max-width: 620px; padding: 0; }
  .works:not(.is-horizontal) .works__swipe { display: none; }
}

/* ---------- Ako pracujeme (tmavá sekcia) ---------- */
.process { background: var(--night); color: var(--on-night); padding-block: clamp(90px, 12vw, 190px); }
.process .tag { color: var(--on-night-2); }
.process .tag b { color: var(--oak-l); }
.process__rail { position: relative; height: 1px; background: rgba(239, 232, 222, .16); }
.process__rail i { position: absolute; inset: 0; background: var(--oak-l); transform-origin: left; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding: clamp(28px, 3vw, 44px) clamp(18px, 2.4vw, 40px) 0; border-left: 1px solid rgba(239, 232, 222, .12); }
.step:first-child { padding-left: 0; border-left: 0; }
.step::before {
  content: "";
  position: absolute;
  left: -5px; top: -5px;
  width: 9px; height: 9px;
  border: 1px solid var(--oak-l);
  border-radius: 50%;
  background: var(--night);
}
.step:first-child::before { left: 0; }
.step__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.step__n { font-family: var(--serif); font-style: italic; font-size: clamp(3.2rem, 5.4vw, 5.4rem); font-weight: 500; line-height: .82; color: var(--oak-l); font-variant-numeric: lining-nums; }
.step__ico {
  flex: none;
  width: clamp(40px, 3.6vw, 54px);
  height: auto;
  aspect-ratio: 1;
  fill: none;
  stroke: var(--on-night);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step h3 { margin-top: clamp(44px, 7vw, 110px); font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: 1.08; letter-spacing: -.01em; }
.step p { margin-top: 12px; max-width: 30ch; color: var(--on-night-2); }

/* ---------- Bežiaci pás ---------- */
.marquee { display: none; }
.motion .marquee { display: block; padding-block: clamp(44px, 6.4vw, 100px); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__set { display: flex; align-items: center; flex: none; }
.marquee span {
  font-family: var(--serif);
  font-size: clamp(3rem, 8.2vw, 8.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.marquee em { color: var(--oak-d); }
.marquee i {
  flex: none;
  width: clamp(8px, .9vw, 13px);
  aspect-ratio: 1;
  margin-inline: clamp(24px, 3.8vw, 64px);
  background: var(--oak);
  transform: rotate(45deg);
}

/* ---------- Kontakt ---------- */
.contact { padding-block: clamp(80px, 11vw, 170px); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: end;
}
.contact__phone {
  position: relative;
  display: inline-block;
  margin-top: clamp(20px, 3vw, 44px);
  font-family: var(--serif);
  font-size: clamp(3.3rem, 9vw, 9.4rem);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1.05;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.contact__phone::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: 2px;
  background: var(--oak);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .9s var(--ease);
}
@media (hover: hover) {
  .contact__phone:hover::after { transform: scaleX(1); transform-origin: left; }
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.4vw, 48px); }

/* údaje v štýle rohovej pečiatky výkresu */
.block { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.block__row { display: grid; grid-template-columns: clamp(96px, 9vw, 128px) minmax(0, 1fr); border-bottom: 1px solid var(--ink); }
.block__row:last-child { border-bottom: 0; }
.block dt {
  display: flex;
  align-items: center;
  padding: 18px 16px 18px 20px;
  border-right: 1px solid var(--ink);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.block dd { padding: 16px 20px; font-size: 1.04em; overflow-wrap: anywhere; }
.block a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
@media (hover: hover) {
  .block a:hover { background-size: 100% 1px; }
}

/* ---------- Pätička ---------- */
.ft { background: var(--night); color: var(--on-night); padding-top: clamp(56px, 8vw, 120px); overflow: hidden; }
.ft__word {
  font-family: var(--serif);
  font-size: var(--ft-fs, 14vw);
  font-weight: 500;
  line-height: .86;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
}
.ft__word span { display: inline-block; }
.ft__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(34px, 5vw, 72px);
  padding-block: 26px;
  border-top: 1px solid rgba(239, 232, 222, .16);
  font-size: .9rem;
  color: var(--on-night-2);
}
.ft__row a { color: var(--on-night); }
.ft__top { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.ft__top svg { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .6s var(--ease); }
@media (hover: hover) {
  .ft__row a:hover { color: var(--oak-l); }
  .ft__top:hover svg { transform: rotate(-90deg) translateX(5px); }
}

/* ---------- Zväčšená fotografia ---------- */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb__bg { position: absolute; inset: 0; background: rgba(30, 29, 27, .96); cursor: zoom-out; }
.lb__fig { position: relative; display: grid; gap: 14px; pointer-events: none; }
.lb__img {
  width: auto;
  height: min(calc(100vh - 150px), calc((100vw - 40px) * 4 / 3));
  height: min(calc(100svh - 150px), calc((100vw - 40px) * 4 / 3));
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #33312e;
}
.lb__cap { display: flex; align-items: baseline; gap: 18px; color: var(--on-night); }
.lb__cap .tag { color: var(--oak-l); }
.lb__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.lb__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  padding: 0;
  border: 1px solid rgba(239, 232, 222, .4);
  border-radius: 50%;
  background: rgba(30, 29, 27, .5);
  color: var(--on-night);
  cursor: pointer;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.lb__btn svg { width: 22px; height: 22px; }
.lb__btn--close { right: 20px; top: 20px; }
.lb__btn--prev { left: 20px; top: 50%; margin-top: -28px; }
.lb__btn--prev svg { transform: rotate(180deg); }
.lb__btn--next { right: 20px; top: 50%; margin-top: -28px; }
@media (hover: hover) {
  .lb__btn:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
}

/* ---------- Kurzor nad fotkami realizácií ---------- */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 108px; height: 108px;
  margin: -54px 0 0 -54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--linen);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.has-cursor .work__open { cursor: none; }

/* ---------- Užšie obrazovky ---------- */
@media (max-width: 1099px) {
  .hd__nav { display: none; }
  .hd__burger { display: flex; }
  .hd__in { gap: 14px; }
  .brand { margin-right: auto; }
}

/* Úvod pod sebou: nadpis, výkres, fázy; text s tlačidlami až pod pripnutou časťou */
@media (max-width: 899px), (max-height: 559px) {
  :root { --hd-h: 64px; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__name { font-size: 1.35rem; }

  .hero {
    --cap: 34px;
    --head: calc(var(--hero-fs, 11.4vw) * 1.25 + 74px);      /* popisok + nadpis nad výkresom */
    --sheet-w: min(100vw - 2 * var(--gut) - 8px, calc((100vh - var(--hd-h) - var(--head) - var(--cap) - 70px) * .75));
    --sheet-w: min(100vw - 2 * var(--gut) - 8px, calc((100svh - var(--hd-h) - var(--head) - var(--cap) - 70px) * .75));
    --seal: clamp(84px, 24vw, 104px);
  }
  /* pripnutá časť je len taká vysoká, ako jej obsah – text s tlačidlami príde hneď pod ňu */
  .hero__pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: calc(var(--hd-h) + 10px) var(--gut) 18px;
  }
  .hero__eyebrow { justify-content: center; padding-top: 0; font-size: .66rem; }
  .hero__eyebrow i { width: 16px; }
  .hero__title {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: .2em;
    width: 100%;
    margin-top: 12px;
    transform: none;
    font-size: var(--hero-fs, 11.4vw);
  }
  .slot--r { grid-column: 2; }
  .sheet { margin-top: 28px; align-self: center; }
  .sheet__cap { font-size: .62rem; letter-spacing: .16em; }
  .seal { right: 10px; top: auto; bottom: calc(var(--cap) + 10px); }

  .phases { display: flex; justify-self: auto; gap: 14px; margin-top: 14px; padding-top: 0; font-size: .66rem; letter-spacing: .16em; }
  .phases li { gap: 8px; }
  .phases li::before { display: none; }
  .phases li span { display: none; }
  .phases li.is-on span { display: inline; }
  .phases li + li::before { display: block; width: 14px; background: var(--line-2); transform: none; }
  .hero__note { display: none; }

  .hero__lead { position: static; width: auto; padding: 22px var(--gut) 0; }
  .hero__lead .lead { max-width: 36ch; }
}

/* nízke okno (telefón naležato): úvod sa nepripína, fotka je vidno hneď */
@media (max-height: 519px) {
  .hero { --sheet-w: min(100vw - 2 * var(--gut) - 8px, 300px); }
  .phases { display: none; }
}

@media (max-width: 899px) {
  .manifest__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .manifest__tag { padding-top: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); border-top: 0; margin-top: 56px; }
  .fact, .fact:first-child { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .fact__n { grid-row: 1 / 3; padding-top: 4px; }
  .fact h3 { margin-top: 0; }
  .fact p:last-child { grid-column: 2; margin-top: 8px; }

  /* fotka ostane stáť hore a riadky sa pod ňou posúvajú; horný okraj bloku (výška hlavičky) kryje
     riadky, keď je hlavička skrytá. Medzeru pod nadpisom preto robí tento okraj, nie nadpis –
     blok sa nesmie posúvať nahor cez nadpis (zakrýval jeho spodný riadok). */
  .services .head { margin-bottom: 0; }
  .services__grid { display: block; }
  .services__view { position: sticky; top: 0; z-index: 2; padding: calc(var(--hd-h) + 6px) 0 12px; background: var(--linen); border-bottom: 1px solid var(--ink); }
  .services__list { border-top: 0; }
  .services__frame { aspect-ratio: auto; height: min(42vh, 80vw); height: min(42svh, 80vw); }
  .services__count { padding-top: 10px; }
  .service p { max-width: none; }
  .js .service.is-on h3, .js .service.is-on p { transform: none; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .process__rail { display: none; }
  .step, .step:first-child { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 8px; padding: 26px 0 30px; border-left: 0; border-top: 1px solid rgba(239, 232, 222, .16); }
  .step::before { display: none; }
  .step__top { grid-row: 1 / 3; display: block; }
  .step__ico { display: none; }
  .step__n { font-size: 3.2rem; }
  .step h3 { margin-top: 0; }
  .step p { grid-column: 2; margin-top: 8px; max-width: none; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact__phone { font-size: clamp(2.9rem, 14.4vw, 6rem); }

  .ft__row { justify-content: flex-start; }
  .ft__top { margin-left: auto; }

  .lb__btn--prev, .lb__btn--next { top: auto; bottom: 16px; margin-top: 0; }
  .lb__btn--prev { left: calc(50% - 66px); }
  .lb__btn--next { right: calc(50% - 66px); }
  .lb__img { height: min(calc(100svh - 200px), calc((100vw - 40px) * 4 / 3)); }
  .lb__fig { margin-bottom: 60px; }
}

@media (max-width: 479px) {
  .hd__tel { width: 46px; padding: 0; justify-content: center; }
  .hd__tel span { display: none; }
  .hd__burger-txt { display: none; }
  .btn { width: 100%; }
  .hero__cta .link { margin-inline: auto; }
  .contact__actions { display: grid; }
  .block__row { grid-template-columns: minmax(0, 1fr); }
  .block dt { padding: 12px 16px 0; border-right: 0; }
  .block dd { padding: 4px 16px 14px; }
}

/* ---------- Vypnutý pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .hd, .menu, .loader, .cursor, .lb, .marquee, .phases, .hero__note { display: none !important; }
  .hero__pin { height: auto; }
}
