/* ---------- Fonty ---------- */
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; 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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; 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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope"; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0f110e;
  --coal: #1a1d18;
  --paper: #faf8f4;
  --ivory: #f2eee6;
  --ink: #1a1d18;
  --muted: #6b6f66;
  --muted-light: #a9aca2;
  --line: #e2ddd3;
  --line-dark: rgba(242,238,230,.14);
  --brand: #70b443;
  --brand-ink: #3d7a1c;
  --brand-light: #9ccb78;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --caps: var(--sans);
  --ease: cubic-bezier(.22,.8,.2,1);
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand); color: var(--night); }
h1, h2, h3 { font-weight: 400; margin: 0; }
h2 { font: 400 clamp(2.3rem, 4.4vw, 3.8rem)/1.05 var(--serif); letter-spacing: -.01em; }
h2 em { font-style: italic; color: var(--brand-ink); }
h3 { font: 600 1.06rem/1.35 var(--sans); }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* intro animace – segmenty z loga */
.seg { display: inline-flex; gap: 3px; }
.seg i { display: block; height: 7px; background: var(--brand); }
.seg i:nth-child(1) { width: 4px; } .seg i:nth-child(2) { width: 12px; } .seg i:nth-child(3) { width: 14px; } .seg i:nth-child(4) { width: 34px; } .seg i:nth-child(5) { width: 70px; }

/* tlačítka */
.btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 1px solid var(--bg); font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--brand { --bg: var(--brand); --fg: var(--night); }
.btn--brand:hover { background: #82c255; border-color: #82c255; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(250,248,244,.5); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--wide { width: 100%; }

/* ---------- Intro (opona) ---------- */
.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: none; }
.js .intro { display: block; }
.intro__panel { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--night); }
.intro__panel--l { left: 0; } .intro__panel--r { right: 0; }
.intro__mark { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; }
.intro__mark img { width: min(330px, 66vw); height: auto; opacity: 0; }
.seg--load i { transform: scaleX(0); transform-origin: left; }
.intro.is-done { display: none; }

/* ---------- Navigace ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.nav__in { display: flex; align-items: center; gap: 32px; height: 80px; padding-inline: var(--gutter); transition: height .4s var(--ease); }
.nav__logo { position: relative; display: block; width: 200px; height: 32px; flex: none; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left; transition: opacity .3s; }
.nav__logo-dark { opacity: 0; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a, .nav__tel { font: 500 .93rem/1 var(--sans); text-decoration: none; color: rgba(250,248,244,.86); transition: color .25s; }
.nav__links a:hover, .nav__tel:hover { color: #fff; }
.nav__cta { padding: 12px 20px; font-size: .88rem; }
.nav__burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 1.5px; background: var(--paper); margin: 7px 0; transition: transform .4s var(--ease), background .3s; }
.nav.is-solid { background: rgba(250,248,244,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .nav__in { height: 66px; }
.nav.is-solid .nav__logo-dark { opacity: 1; } .nav.is-solid .nav__logo-light { opacity: 0; }
.nav.is-solid .nav__links a, .nav.is-solid .nav__tel { color: var(--muted); }
.nav.is-solid .nav__links a:hover, .nav.is-solid .nav__tel:hover { color: var(--ink); }
.nav.is-solid .nav__cta { --bg: var(--ink); --fg: var(--paper); }
.nav.is-solid .nav__burger span { background: var(--ink); }
.nav.is-hidden { transform: translateY(-100%); }

/* ---------- Hero: stavba místnosti ---------- */
.build { position: relative; background: var(--night); color: var(--paper); }
.build__pin { position: relative; height: 100svh; overflow: hidden; }
.build__world { --ar: 2400 / 1357; position: absolute; left: 50%; top: 50%; width: max(100vw, 100svh * 2400 / 1357); height: max(100svh, 100vw * 1357 / 2400);
  transform: translate(calc(-50% + var(--panx, 0px)), -50%) scale(var(--zoom, 1)); transform-origin: 50% 55%; will-change: transform; }
.layer { position: absolute; inset: 0; display: block; }
.layer img, .layer i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* malování – váleček shora dolů s měkkou hranou */
.layer--paint { --p: 0; -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--p) * 125% - 25%), transparent calc(var(--p) * 125%)); mask-image: linear-gradient(180deg, #000 calc(var(--p) * 125% - 25%), transparent calc(var(--p) * 125%)); }
/* tapeta – pásy padají shora na pravou stěnu */
.layer--paper i { background: url(img/build/2-tapeta.jpg?v=2) center / 100% 100% no-repeat; clip-path: inset(0 100% 100% 0); }
/* podlaha – pokládka zleva doprava */
.layer--floor { --p: 0; -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--p) * 130% - 30%), transparent calc(var(--p) * 130%)); mask-image: linear-gradient(100deg, #000 calc(var(--p) * 130% - 30%), transparent calc(var(--p) * 130%)); }
/* lišty – rychlý tah zleva */
.layer--trim { --p: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) * 112% - 12%), transparent calc(var(--p) * 112%)); mask-image: linear-gradient(90deg, #000 calc(var(--p) * 112% - 12%), transparent calc(var(--p) * 112%)); }
/* nástěnné lišty – montáž zdola nahoru */
.layer--wall { --p: 0; -webkit-mask-image: linear-gradient(0deg, #000 calc(var(--p) * 120% - 20%), transparent calc(var(--p) * 120%)); mask-image: linear-gradient(0deg, #000 calc(var(--p) * 120% - 20%), transparent calc(var(--p) * 120%)); }
/* závěsy – spadnou shora */
.layer--drape { --p: 0; -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--p) * 115% - 15%), transparent calc(var(--p) * 115%)); mask-image: linear-gradient(180deg, #000 calc(var(--p) * 115% - 15%), transparent calc(var(--p) * 115%)); }
/* nábytek – rozsvícení */
.layer--furn { opacity: 0; filter: blur(var(--blur, 0px)) brightness(var(--br, 1)); }
.layer.is-full { -webkit-mask-image: none; mask-image: none; filter: none; }

.plan { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--plan-o, 0); pointer-events: none; }
.plan--v { display: none; }
.plan path { fill: none; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--d, 0)); vector-effect: non-scaling-stroke; }
.plan__room path { stroke: rgba(250,248,243,.9); stroke-width: 1.5; }
.plan__dim path { stroke: var(--brand); stroke-width: 2; }
.plan__txt text { font: 500 30px var(--caps); letter-spacing: .1em; fill: var(--brand); opacity: var(--d, 0); }

.tag { position: absolute; transform: translate(-50%, calc(-50% + (1 - var(--t, 0)) * 14px)); opacity: var(--t, 0); white-space: nowrap; font: 500 .72rem/1 var(--caps); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: rgba(250,248,243,.94); padding: 10px 14px 10px 30px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); pointer-events: none; }
.tag::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(112,180,67,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(112,180,67,0); } 100% { box-shadow: 0 0 0 0 rgba(112,180,67,0); } }

.build__shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(15,17,14,.55) 0%, rgba(15,17,14,0) 22%),
  linear-gradient(0deg, rgba(15,17,14,calc(.78 * var(--shade-b, 1))) 0%, rgba(15,17,14,0) 42%),
  rgba(15,17,14, var(--shade, .35)); }

.build__intro { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 var(--gutter); opacity: var(--intro-o, 1); transform: translateY(calc((1 - var(--intro-o, 1)) * -40px)); pointer-events: var(--intro-pe, auto); }
.build__kicker { font: 500 .78rem/1 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: rgba(250,248,243,.8); margin-bottom: 26px; }
.build__h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 7.6rem); line-height: .95; letter-spacing: -.02em; margin: 0 0 40px; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.build__h1 em { color: var(--brand-light); }
.build__play { display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; border-radius: 999px; border: 1px solid rgba(250,248,243,.45); background: rgba(15,17,14,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--paper); font: 500 .78rem/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s, border-color .3s; }
.build__play:hover { background: rgba(112,180,67,.25); border-color: var(--brand); }
.build__play-i { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); position: relative; }
.build__play-i::after { content: ""; position: absolute; left: 17px; top: 14px; border-left: 11px solid var(--night); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.build__hint { margin-top: 16px; font: 500 .68rem/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: rgba(250,248,243,.6); }

.build__hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vh, 44px); display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; opacity: var(--hud-o, 0); transform: translateY(calc((1 - var(--hud-o, 0)) * 24px)); pointer-events: none; }
.hud__n { display: flex; align-items: flex-end; gap: 8px; }
.hud__num { font: 400 clamp(4rem, 9vw, 8rem)/.78 var(--serif); }
.hud__of { font: 500 .78rem/1 var(--caps); letter-spacing: .2em; color: rgba(250,248,243,.6); padding-bottom: 6px; }
.hud__txt p { margin: 0; }
.hud__who { font: 400 clamp(1.8rem, 3.4vw, 3rem)/1 var(--serif); margin-bottom: 8px !important; }
.hud__what { color: rgba(250,248,243,.78); font-size: 1rem; }
.hud__txt.is-swap { animation: hudswap .55s var(--ease); }
@keyframes hudswap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* segmentovaný pruh z loga jako ukazatel postupu */
.hud__bar { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 4px; align-items: center; }
.hud__bar li { height: 9px; background: rgba(250,248,243,.18); overflow: hidden; }
.hud__bar li:nth-child(1) { width: 6px; } .hud__bar li:nth-child(2) { width: 12px; } .hud__bar li:nth-child(3) { width: 18px; } .hud__bar li:nth-child(4) { width: 24px; } .hud__bar li:nth-child(5) { width: 32px; } .hud__bar li:nth-child(6) { width: 44px; } .hud__bar li:nth-child(7) { width: 60px; } .hud__bar li:nth-child(8) { width: 110px; }
.hud__bar i { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(var(--f, 0)); }

.build__final { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 9vh, 96px); opacity: var(--fin-o, 0); transform: translateY(calc((1 - var(--fin-o, 0)) * 40px)); pointer-events: var(--fin-pe, none); }
.build__crafts { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; }
.build__crafts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; font: 500 .85rem/1 var(--sans); color: rgba(250,248,244,.55); background: rgba(15,17,14,.35); border: 1px solid rgba(250,248,244,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: color .4s, border-color .4s, background .4s; }
.build__crafts li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(250,248,244,.35); transition: background .4s, border-color .4s; background: center / 10px no-repeat; }
.build__crafts li.is-on { color: var(--paper); border-color: rgba(112,180,67,.55); }
.build__crafts li.is-on::before { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%230f110e' stroke-width='1.6'/%3E%3C/svg%3E"); }
.build__title { font: 400 clamp(2.6rem, 6vw, 5.4rem)/1 var(--serif); letter-spacing: -.015em; margin: 0 0 30px; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.build__title em { color: var(--brand-light); }
.build__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* bez JS / s omezeným pohybem: rovnou hotová místnost */
html:not(.js) .layer--furn, .build.is-static .layer--furn { opacity: 1; }
html:not(.js) .build__intro, .build.is-static .build__intro { display: none; }
html:not(.js) .build__final, .build.is-static .build__final { --fin-o: 1; --fin-pe: auto; }

@media (max-width: 760px) {
  /* mobil: vlastní obrázky na výšku (9:16), přes celou obrazovku, bez posunu */
  .build__world { width: max(100vw, 100svh * 1080 / 1920); height: max(100svh, 100vw * 1920 / 1080); transform: translate3d(-50%, -50%, 0); }
  .layer { transform: translateZ(0); }
  .layer--furn { filter: none; }
  .plan--v { will-change: opacity; }
  .build__intro { transform: none; will-change: opacity; }
  .build__h1 { text-shadow: none; }
  .build__play { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(15,17,14,.45); }
  .tag::before { animation: none; }
  .tag { display: none; }
  .layer--paper i { background-image: url(img/build/2-tapeta-v.jpg?v=3); }
  .plan { display: none; }
  .plan--v { display: block; }
  .plan--v .plan__txt text { font-size: 44px; }
  .tag[data-tag="1"] { left: 26% !important; top: 40% !important; }
  .tag[data-tag="2"] { left: 72% !important; top: 30% !important; }
  .tag[data-tag="3"] { left: 50% !important; top: 80% !important; }
  .tag[data-tag="4"] { left: 50% !important; top: 12% !important; }
  .tag[data-tag="5"] { left: 24% !important; top: 52% !important; }
  .tag[data-tag="6"] { left: 50% !important; top: 22% !important; }
  .tag[data-tag="7"] { left: 58% !important; top: 70% !important; }
  .tag { white-space: normal; max-width: 38vw; line-height: 1.25; }
  .build__crafts { gap: 6px; margin-bottom: 18px; }
  .build__crafts li { font-size: .74rem; padding: 6px 10px 6px 7px; gap: 6px; }
  .build__crafts li::before { width: 13px; height: 13px; background-size: 8px; }
  .build__final { bottom: 28px; }
  .build__h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .build__hud { grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 14px; bottom: 26px; }
  .hud__bar { grid-column: 1 / -1; order: -1; margin: 0 0 10px; }
  .hud__bar li { height: 5px; }
  .hud__bar li:nth-child(7) { width: 50px; } .hud__bar li:nth-child(8) { width: 80px; }
  .hud__n { gap: 4px; align-items: baseline; }
  .hud__num { font: 500 .72rem/1 var(--caps); letter-spacing: .2em; color: var(--brand-light); }
  .hud__of { font-size: .72rem; padding: 0; }
  .hud__who { font-size: 1.35rem; margin-bottom: 4px !important; text-shadow: 0 1px 18px rgba(0,0,0,.5); }
  .hud__what { font-size: .82rem; color: rgba(250,248,244,.72); line-height: 1.4; }
  .build__shade { background:
    linear-gradient(180deg, rgba(15,17,14,.5) 0%, rgba(15,17,14,0) 18%),
    linear-gradient(0deg, rgba(15,17,14,calc(.88 * var(--shade-b, 1))) 0%, rgba(15,17,14,calc(.5 * var(--shade-b, 1))) 16%, rgba(15,17,14,0) 34%),
    rgba(15,17,14, var(--shade, .35)); }
  .tag { font-size: .62rem; padding: 8px 11px 8px 25px; }
  .tag::before { left: 10px; }
  .build__cta .btn { flex: 1 1 100%; }
}

/* ---------- Sekce pod hero ---------- */
.sec { padding: clamp(110px, 13vw, 200px) 0; }
.sec__title { font: 400 clamp(3rem, 6vw, 5.6rem)/.95 var(--serif); letter-spacing: -.025em; margin: 0 0 clamp(44px, 5vw, 76px); }

/* odhalení při scrollu */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* O nás – tmavý blok s velkým sdělením */
.about { background: var(--night); color: var(--ivory); padding: clamp(140px, 18vw, 260px) 0 clamp(110px, 13vw, 200px); }
.about__big { font: 400 clamp(3.6rem, 9vw, 9rem)/.92 var(--serif); letter-spacing: -.035em; margin: 0; }
.about__lead { max-width: 52ch; margin: 32px 0 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted-light); }
.facts { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts li { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.facts strong { display: block; font: 400 clamp(3.4rem, 6vw, 5.6rem)/.9 var(--serif); color: var(--brand-light); margin-bottom: 10px; }
.facts span { font-size: .98rem; color: var(--muted-light); }
.about__hl { position: relative; display: inline-block; color: var(--night); padding: .1em .06em .02em .02em; margin-top: -.04em; z-index: 0; }
.about__hl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); transform-origin: left center; }
.js .about__big.rv .about__hl::before { transform: scaleX(0); transition: transform 1s var(--ease) .35s; }
.js .about__big.rv .about__hl { color: var(--ivory); transition: color .35s ease .95s; }
.js .about__big.rv.is-in .about__hl { color: var(--night); }
.js .about__big.rv.is-in .about__hl::before { transform: none; }
.marquee { margin-top: clamp(110px, 14vw, 200px); border-block: 1px solid var(--line-dark); overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 400 clamp(1.6rem, 2.8vw, 2.6rem)/1 var(--serif); color: rgba(242,238,230,.42); white-space: nowrap; padding-right: 56px; position: relative; }
.marquee span::after { content: ""; position: absolute; right: 24px; top: 50%; width: 7px; height: 7px; margin-top: -2px; background: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
.partners { margin-top: clamp(110px, 13vw, 180px); }
.partners__title { font: 400 clamp(2.2rem, 4vw, 3.6rem)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 56px; text-align: center; }
.partners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: start; }
.partners__list a, .partners__list div { display: grid; grid-template-rows: 84px auto; justify-items: center; align-items: center; row-gap: 14px; text-decoration: none; color: var(--muted-light); text-align: center; }
.partners__list img { height: var(--h); width: auto; max-width: 100%; opacity: .9; transition: opacity .3s; }
.partners__list span { font-size: .9rem; }
.partners__list a:hover img { opacity: 1; }
.partners__list a:hover span { color: var(--brand-light); }

/* Služby – obrazové dlaždice */
.services { background: var(--paper); }
.tiles-wrap { position: relative; padding: clamp(56px, 6vw, 84px) 0; }
.tiles__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.tiles__track { fill: none; stroke: rgba(26,29,24,.1); stroke-width: 6; }
.tiles__draw { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: butt; stroke-linejoin: miter; }
.tiles__mask { fill: none; stroke: #fff; stroke-width: 16; }
.tiles__fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.tiles__nodes { display: none; }
.tiles__nodes rect { fill: var(--paper); stroke: rgba(26,29,24,.22); stroke-width: 2; transition: fill .5s var(--ease), stroke .5s var(--ease); }
.tiles__nodes rect.is-on { fill: var(--brand); stroke: var(--brand); }
.tiles { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: clamp(36px, 4vw, 56px); row-gap: clamp(64px, 7vw, 100px); }
.tile { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 4; background: var(--coal); transition: filter 1.1s var(--ease); }
.js .services .tile { filter: grayscale(.85) contrast(.72) brightness(1.18); }
.js .services .tile.is-on { opacity: 1; filter: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,17,14,0) 40%, rgba(15,17,14,.78) 100%); }
.tile__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 22px 24px; color: var(--paper); }
.tile__txt span { display: block; font: 500 .74rem/1 var(--sans); letter-spacing: .2em; opacity: .7; margin-bottom: 12px; }
.tile h3 { font: 400 clamp(1.5rem, 2vw, 1.9rem)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 6px; }
.tile p { margin: 0; font-size: .88rem; line-height: 1.45; opacity: .78; }
.tile:hover img { transform: scale(1.05); }

.services__cta { display: inline-block; margin-top: 32px; font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--brand); padding-bottom: 3px; transition: color .25s; }
.services__cta:hover { color: var(--brand-ink); }

/* Creativa – tmavá */
.creativa { background: var(--ivory); color: var(--ink); }
.creativa__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.creativa__head h2 { font-size: clamp(3rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.025em; margin: 0; }
.creativa__head p { color: var(--muted); font-size: 1.12rem; margin: 0 0 18px; }

.creativa__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .95rem; margin: 0 !important; }
.creativa__links a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--brand); padding-bottom: 2px; }
.creativa__links a:hover { color: var(--brand-ink); }
.creativa__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.c { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.c--big { grid-column: span 2; grid-row: span 2; }
.c img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.c--big img { aspect-ratio: auto; }
.c:hover img { transform: scale(1.04); }
.c figcaption { position: absolute; left: 12px; bottom: 12px; font: 600 .8rem/1 var(--sans); color: var(--ink); background: rgba(250,248,244,.92); padding: 8px 12px; border-radius: 999px; }

/* Před / po */
.ba__box { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 6px; user-select: none; touch-action: pan-y; background: var(--coal); }
.ba__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ba__handle svg { width: 22px; fill: none; stroke: var(--night); stroke-width: 1.8; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__tag { position: absolute; top: 16px; font: 600 .78rem/1 var(--sans); color: var(--paper); background: rgba(15,17,14,.55); padding: 8px 12px; border-radius: 999px; pointer-events: none; }
.ba__tag--l { left: 16px; } .ba__tag--r { right: 16px; }

/* Realizace */
.work { background: var(--paper); }
.work__ba { margin-bottom: 14px; aspect-ratio: 16 / 9 !important; }
.gallery { display: flex; gap: 14px; align-items: stretch; }
.gcol { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gcol .g { margin: 0; }
.gcol .g:last-child { flex-grow: 1; }
.gcol .g:last-child img { height: 100%; object-fit: cover; }
.g { display: block; position: relative; overflow: hidden; border-radius: 6px; margin: 0 0 14px; break-inside: avoid; }
.g img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.g:hover img { transform: scale(1.03); }

/* Kontakt */
.contact { background: var(--coal); color: var(--ivory); }
.contact__in { max-width: 640px; }
.contact__title { text-align: center; margin-bottom: 60px; }
.contact .form__note { text-align: center; }
.contact h2 { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .95; letter-spacing: -.025em; margin-bottom: 18px; }
.contact__text > p { color: var(--muted-light); }
.contact__tel { display: inline-block; margin: 18px 0 32px; font: 400 clamp(2rem, 3.6vw, 3rem)/1 var(--serif); text-decoration: none; }
.contact__tel:hover { color: var(--brand-light); }
.next { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.next li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
.next span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--night); font: 700 .85rem/1 var(--sans); }
.contact__dl { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.contact__dl dt { font-size: .82rem; color: var(--muted-light); margin-bottom: 4px; }
.contact__dl dd { margin: 0; font-size: .97rem; }
.contact__dl a { text-decoration: none; border-bottom: 1px solid var(--brand); }
.contact__dl a:hover { color: var(--brand-light); }
.form { display: grid; gap: 18px; }
.chips { border: 0; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: .9rem; color: var(--muted-light); margin-bottom: 12px; padding: 0; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .9rem; cursor: pointer; transition: all .2s; user-select: none; }
.chips span:hover { border-color: rgba(242,238,230,.4); }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--night); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-size: .88rem; color: var(--muted-light); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ivory); background: rgba(242,238,230,.05); border: 1px solid var(--line-dark); border-radius: 8px; padding: 13px 14px; resize: vertical; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field input.is-invalid { border-color: #e0785f; }
.form__msg { min-height: 1.5em; margin: 0; font-size: .95rem; }
.form__msg.is-ok { color: var(--brand-light); }
.form__msg.is-err { color: #f0a08b; }

/* Patička */
.footer { background: var(--night); color: var(--muted-light); padding: 40px 0; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer img { width: 200px; height: auto; }
.footer p { margin: 0; font-size: .85rem; line-height: 1.7; }
.footer__small { font-size: .78rem; opacity: .75; }
.footer a { color: var(--ivory); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(15,17,14,.95); display: grid; place-items: center; padding: 60px 70px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 14px; justify-items: center; }
.lb img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; }
.lb figcaption { display: none; }
.lb button { position: absolute; background: none; border: 0; color: var(--paper); font: 300 2.6rem/1 var(--sans); cursor: pointer; padding: 12px 18px; opacity: .7; }
.lb button:hover { opacity: 1; }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 6px; top: 50%; transform: translateY(-50%); }

.nav__only-m { display: none; }
.nav.is-open .nav__links .nav__only-m { display: block; }

/* ---------- Responsivita ---------- */
@media (max-width: 1100px) { .nav__tel { display: none; } }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav.is-open { background: var(--paper); }
  .nav.is-open .nav__logo-dark { opacity: 1; } .nav.is-open .nav__logo-light { opacity: 0; }
  .nav.is-open .nav__burger span { background: var(--ink); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav.is-open .nav__in { height: 66px; }
  .nav.is-open .nav__links { display: flex; position: fixed; top: 66px; left: 0; right: 0; height: calc(100svh - 66px); flex-direction: column; gap: 0; background: var(--paper); padding: 16px var(--gutter); margin: 0; }
  .nav.is-open .nav__links a { color: var(--ink); font: 400 2rem/1 var(--serif); padding: 16px 0; border-bottom: 1px solid var(--line); }

  .creativa__head, .contact__in { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .creativa__grid { grid-template-columns: 1fr 1fr; }
  .c--big { grid-column: span 2; grid-row: auto; }
  .c--big img { height: auto; aspect-ratio: 4 / 3; }
  .gallery { display: block; column-count: 2; column-gap: 14px; }
  .gcol { display: contents; }
  .gcol .g { margin: 0 0 14px; }
  .gcol .g:last-child img { height: auto; }
  .partners__list { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .partners__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ba__box { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .facts strong { font-size: 2.8rem; }
  .facts span { font-size: .85rem; line-height: 1.35; display: block; }
  .partners__list a, .partners__list div { grid-template-rows: 64px auto; }
  .partners__list img { height: calc(var(--h) * .75); }
  .gallery { column-count: 1; }
  .form__row, .contact__dl { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; row-gap: 44px; }
  .tile { aspect-ratio: 4 / 3; }

  .ba__box { aspect-ratio: 4 / 3; }
  .lb { padding: 50px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* formulář – doplňky */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { margin: -4px 0 0; font-size: .82rem; color: var(--muted-light); }
.form__note a, .footer__small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover, .footer__small a:hover { color: var(--brand-light); }

/* podstránky (zásady, 404) */
.doc__nav { padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc__nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.doc__logo img { display: block; height: auto; }
.doc__back { font: 600 .92rem/1 var(--sans); color: var(--ink); text-decoration: none; }
.doc__back:hover { color: var(--brand-ink); }
.doc__main { padding-top: clamp(56px, 8vw, 96px); }
.doc__in { max-width: 760px; }
.doc h1 { font: 400 clamp(2.6rem, 5vw, 4.2rem)/1.02 var(--serif); letter-spacing: -.015em; margin: 0 0 24px; }
.doc__in h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 44px 0 12px; }
.doc__in p { color: var(--muted); }
.doc__in a { color: var(--ink); text-decoration-color: var(--brand); text-underline-offset: 3px; }
.doc__lead { font-size: 1.15rem; color: var(--ink) !important; }
.doc__date { margin-top: 48px; font-size: .88rem; }
.doc--404 { background: var(--night); color: var(--paper); min-height: 100vh; display: grid; place-items: center; }
.nf { text-align: center; padding: 40px var(--gutter); max-width: 620px; }
.nf img { height: auto; max-width: 70vw; margin-bottom: 48px; }
.nf h1 { margin-bottom: 16px; }
.nf p { color: var(--muted-light); margin: 0 0 32px; }

/* podpis nadpisů – pruh z loga */
.sec__title::after, .creativa__head h2::after, .partners__title::after {
  content: ""; display: block; width: 146px; height: 6px; margin-top: 26px;
  background: linear-gradient(90deg, var(--brand) 0 4px, transparent 4px 7px, var(--brand) 7px 19px, transparent 19px 22px, var(--brand) 22px 36px, transparent 36px 39px, var(--brand) 39px 73px, transparent 73px 76px, var(--brand) 76px 146px);
  clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) .45s;
}
.js .rv .sec__title::after, .js .sec__title.rv::after, .js .creativa__head.rv h2::after, .js .partners.rv .partners__title::after { clip-path: inset(0 100% 0 0); }
.js .sec__title.rv.is-in::after, .js .creativa__head.rv.is-in h2::after, .js .partners.rv.is-in .partners__title::after { clip-path: inset(0 0 0 0); }
.contact__title::after, .partners__title::after { margin-inline: auto; }

.field small { font-size: .78em; opacity: .65; margin-left: 4px; }

.footer__seo { font-size: .78rem; opacity: .55; }

/* mobil: „Váš interiér. Naše starost.“ přes skoro celou obrazovku */
@media (max-width: 760px) {
  .about { padding-top: 0; }
  .about > .wrap:first-child { min-height: 88svh; display: flex; align-items: center; }
  .about__big { font-size: clamp(4rem, 17vw, 5.4rem); line-height: .95; }
  .about .marquee { margin-top: 0; }
}
