/* IF.ink — Inkoust ve vodě */
:root {
  --ink: #0c0b0a;
  --ink-2: #161412;
  --ink-3: #221f1c;
  --bone: #ece5d8;
  --paper: #f4efe6;
  --bone-dim: rgba(236, 229, 216, .62);
  --bone-line: rgba(236, 229, 216, .16);
  --red: #b8322a;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 4vw, 64px);
  --bar: 84px;
}
@media (max-width: 899px) { :root { --bar: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js body.is-loading { overflow: hidden; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--bone); color: var(--ink); padding: 12px 16px; }
.skip:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(184, 50, 42, .18); }
.eyebrow .idx { font: italic 400 20px/1 var(--serif); letter-spacing: 0; color: var(--red); text-transform: none; }

.h-xl { font: 300 clamp(46px, 6.6vw, 112px)/.98 var(--serif); letter-spacing: -.02em; }
.h-xxl { font: 300 clamp(58px, 11vw, 200px)/.9 var(--serif); letter-spacing: -.03em; }
.h-xl em, .h-xxl em { font-weight: 300; }

/* odkazy */
.lnk { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.lnk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.lnk:hover::after, .lnk:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.lnk--arrow span { display: inline-block; transition: transform .4s var(--ease); }
.lnk--arrow:hover span { transform: translate(3px, 2px); }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 0 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--bone); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: .02em;
  transition: color .5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--bone); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--dark { background: var(--ink); color: var(--bone); }

/* ——— Preloader ——— */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
}
.no-js .loader, .loader.gone { display: none; }
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__mark { width: 120px; height: 120px; fill: none; stroke: var(--bone); stroke-width: 1.2; overflow: visible; }
.loader__mark .lm-c { stroke-dasharray: 315; stroke-dashoffset: 315; animation: draw 1.3s var(--ease) .1s forwards; transform-origin: center; transform: rotate(-90deg); }
.loader__mark .lm-r { stroke-dasharray: 18; stroke-dashoffset: 18; animation: draw .6s var(--ease) .7s forwards; }
.loader__mark .lm-n { stroke-dasharray: 112; stroke-dashoffset: 112; animation: draw .9s var(--ease) .35s forwards; }
.loader__mark .lm-dot { fill: var(--red); stroke: none; opacity: 0; animation: pop .5s var(--ease) 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); transform-origin: 60px 10px; } to { opacity: 1; transform: none; } }
.loader__meta {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim);
}
.loader__num { font: italic 300 clamp(64px, 10vw, 140px)/.8 var(--serif); letter-spacing: -.02em; color: var(--bone); font-variant-numeric: tabular-nums; }

/* ——— Kurzor ——— */
.cursor { position: fixed; left: 0; top: 0; z-index: 180; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--bone); mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(236, 229, 216, .5);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), background-color .4s, border-color .4s;
}
.cursor__label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease); }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; border-color: rgba(236, 229, 216, .8); }
.cursor.is-view .cursor__ring { width: 104px; height: 104px; background: var(--bone); border-color: transparent; }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.on-light .cursor__ring { border-color: rgba(12, 11, 10, .4); }
.cursor.is-hidden { opacity: 0; }

/* ——— Hlavička ——— */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 70; height: var(--bar);
  display: flex; align-items: center; gap: 40px; padding: 0 var(--gut);
  transition: transform .7s var(--ease), color .4s, background-color .4s;
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.is-scrolled { background: linear-gradient(rgba(12, 11, 10, .85), rgba(12, 11, 10, 0)); }
.hdr.is-light { color: var(--ink); }
.hdr.is-light.is-scrolled { background: linear-gradient(rgba(236, 229, 216, .92), rgba(236, 229, 216, 0)); }
.hdr__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font: 500 26px/1 var(--serif); letter-spacing: .01em; }
.mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 5; overflow: visible; transition: transform 1.2s var(--ease); }
.mark .mark__dot { fill: var(--red); stroke: none; }
.hdr__brand:hover .mark { transform: rotate(180deg); }
.hdr__nav { display: flex; gap: 34px; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.hdr.is-light .btn { background: var(--ink); color: var(--bone); }
.hdr__menu { display: none; width: 48px; height: 48px; position: relative; }
.hdr__menu i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.hdr__menu i:first-of-type { top: 19px; }
.hdr__menu i:last-of-type { top: 28px; }
.hdr__menu[aria-expanded="true"] i:first-of-type { top: 23.5px; transform: rotate(45deg); }
.hdr__menu[aria-expanded="true"] i:last-of-type { top: 23.5px; transform: rotate(-45deg); }
@media (max-width: 899px) {
  .hdr { gap: 12px; }
  .hdr__nav { display: none; }
  .hdr__menu { display: block; }
  .hdr__brand { font-size: 23px; }
}

.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--bar) + 6vh) var(--gut) 40px;
  clip-path: circle(0 at calc(100% - 44px) 34px);
  transition: clip-path .9s var(--ease-io);
}
.menu.open { clip-path: circle(150% at calc(100% - 44px) 34px); }
.menu nav { display: grid; gap: 4px; }
.menu nav a { display: flex; align-items: baseline; gap: 14px; font: 300 clamp(44px, 13vw, 80px)/1.1 var(--serif); opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .9s var(--ease); }
.menu nav a small { font: 600 11px/1 var(--sans); letter-spacing: .2em; color: var(--red); }
.menu.open nav a { opacity: 1; transform: none; }
.menu.open nav a:nth-child(2) { transition-delay: .06s; }
.menu.open nav a:nth-child(3) { transition-delay: .12s; }
.menu.open nav a:nth-child(4) { transition-delay: .18s; }
.menu__foot { display: grid; gap: 6px; font-size: 18px; color: var(--bone-dim); }

/* ——— Hero ——— */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: calc(var(--bar) + 40px) var(--gut) clamp(40px, 8svh, 96px);
}
.hero__ink, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(70, 64, 58, .5), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(110, 24, 18, .25), transparent 70%),
    var(--ink);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(12, 11, 10, .85));
}
.hero__inner { position: relative; z-index: 2; max-width: min(860px, 62vw); }
.hero__eyebrow { margin-bottom: clamp(20px, 3svh, 36px); }
.hero__title { font: 300 clamp(60px, 9.4vw, 168px)/.9 var(--serif); letter-spacing: -.035em; }
.hero__title .line { display: block; overflow: hidden; padding: .14em .04em .1em; margin: -.14em -.04em -.1em; }
.hero__title .line--in { padding-left: 1.1em; }
.hero__title em { font-weight: 300; }
.hero__title .red { color: var(--red); }
.hero__lead { max-width: 33ch; margin-top: clamp(24px, 4svh, 44px); font-size: clamp(16px, 1.25vw, 19px); color: var(--bone-dim); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(24px, 4svh, 40px); }

.hero__portrait {
  position: absolute; z-index: 1;
  --s: min(40vw, 68svh);
  width: var(--s); height: var(--s);
  right: calc(var(--gut) + 2vw); top: calc(50% + var(--bar) / 2 - var(--s) / 2);
}
.hero__disc {
  position: absolute; inset: 7%; border-radius: 50%; overflow: hidden;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.6s var(--ease-io);
}
.is-ready .hero__disc { clip-path: circle(50% at 50% 50%); }
.no-js .hero__disc { clip-path: none; }
.hero__disc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.25); transition: transform 2.4s var(--ease); filter: contrast(1.05); }
.is-ready .hero__disc img { transform: scale(1.04); }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--bone-line); stroke-width: .6; overflow: visible; }
.orbit circle:first-child { stroke-dasharray: 616; stroke-dashoffset: 616; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.is-ready .orbit circle:first-child { stroke-dashoffset: 0; }
.orbit__sat { transform-origin: 100px 100px; animation: spin 22s linear infinite; }
.orbit__sat circle { fill: var(--red); stroke: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__portrait figcaption {
  position: absolute; left: -8%; bottom: 6%;
  font: italic 400 22px/1.1 var(--serif);
}
.hero__portrait figcaption span { font: 500 11px/2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim); }
.hero__scroll { position: absolute; z-index: 2; right: var(--gut); bottom: clamp(40px, 8svh, 96px); width: 1px; height: 84px; background: var(--bone-line); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--bone); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

@media (max-width: 899px) {
  .hero { align-items: flex-end; padding-bottom: 34px; }
  .hero__inner { max-width: none; }
  .hero__portrait { --s: min(78vw, 46svh); right: -6vw; top: calc(var(--bar) + 4px); }
  .hero__portrait figcaption { left: auto; right: 14vw; bottom: -2%; font-size: 18px; text-align: right; }
  .hero__title { font-size: clamp(56px, 17.6vw, 120px); }
  .hero__title .line--in { padding-left: .6em; }
  .hero__lead { font-size: 16px; margin-top: 18px; }
  .hero__ctas { margin-top: 22px; }
  .hero__scroll { display: none; }
  .hero__eyebrow { margin-bottom: 14px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .hero__portrait { --s: 40svh; }
  .hero__lead { display: none; }
}

/* split text */
.js [data-split] .ch { display: inline-block; transform: translateY(112%) rotate(8deg); transform-origin: 0 100%; opacity: 0; }
.js .is-ready [data-split] .ch, .js.is-ready [data-split] .ch {
  transform: none; opacity: 1;
  transition: transform 1.2s var(--ease), opacity .6s;
  transition-delay: calc(.25s + var(--d) * 28ms);
}
.ws { display: inline-block; white-space: nowrap; }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero [data-reveal] { transition-delay: calc(.6s + var(--rd, 0s)); }
.js .hero [data-reveal]:not(.in) { transition-delay: 0s; }

.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .03em .12em; margin: -.14em -.03em -.12em; }
.wi { display: inline-block; }
.js [data-lines] .wi { transform: translateY(115%); }
.js [data-lines].in .wi { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }

/* ——— Marquee ——— */
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--bone-line); padding: 22px 0; background: var(--ink); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; will-change: transform; }
.marquee span { font: italic 300 clamp(34px, 4.6vw, 72px)/1 var(--serif); white-space: nowrap; }
.marquee i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--red); flex: none; }
.marquee i:nth-of-type(3n) { background: var(--red); }

/* ——— Ateliér ——— */
.atelier {
  position: relative; background: var(--ink);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(96px, 14vw, 200px) var(--gut) clamp(80px, 10vw, 160px);
}
.atelier__label { grid-column: 1 / -1; margin-bottom: 32px; }
.atelier__h { grid-column: 1 / span 9; margin-bottom: clamp(56px, 8vw, 120px); }
.atelier__img { grid-column: 1 / span 5; aspect-ratio: 3 / 4.2; }
.atelier__text { grid-column: 7 / span 5; align-self: end; display: grid; gap: 22px; font-size: clamp(17px, 1.3vw, 20px); color: var(--bone-dim); max-width: 40ch; }
.atelier__text p:first-child { color: var(--bone); font: 400 clamp(24px, 2.2vw, 34px)/1.3 var(--serif); }
.atelier__sign { font: italic 400 clamp(22px, 1.9vw, 28px)/1.35 var(--serif) !important; color: var(--bone) !important; padding-top: 8px; border-top: 1px solid var(--bone-line); }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--bone-line); }
.facts li { padding: 28px 24px 0 0; display: grid; gap: 8px; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--bone-line); }
.facts b { font: 300 clamp(40px, 4.4vw, 68px)/1 var(--serif); }
.facts span { font-size: 14px; color: var(--bone-dim); }
@media (max-width: 899px) {
  .atelier__h, .atelier__img, .atelier__text { grid-column: 1 / -1; }
  .atelier__img { margin-bottom: 40px; aspect-ratio: 4 / 5; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--bone-line); }
}

.img-reveal { position: relative; overflow: hidden; }
.img-reveal img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
/* ořez na vnitřním obrázku: clip-path na sledovaném prvku by IntersectionObserver nikdy nespustil */
.js .img-reveal img { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
.js .img-reveal.in img { clip-path: inset(0 0 0 0); }

/* ——— Citát ——— */
.quote { position: relative; height: 220svh; background: var(--ink); }
.quote__stick { position: sticky; top: 0; height: 100svh; display: grid; place-content: center; padding: 0 var(--gut); overflow: hidden; }
.quote__line { position: absolute; inset: 12% -2%; width: 104%; height: 76%; fill: none; stroke: var(--bone-line); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.quote__line path { stroke: rgba(236, 229, 216, .55); }
.quote__dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 10px rgba(184, 50, 42, .14), 0 0 40px rgba(184, 50, 42, .6); }
.quote__text { position: relative; max-width: 17ch; font: 300 clamp(44px, 7vw, 120px)/1.02 var(--serif); letter-spacing: -.025em; text-align: center; }
.quote__text .qw { opacity: .14; transition: opacity .25s linear; }
.quote__text .qw.on { opacity: 1; }
.no-js .quote__text .qw, .quote__text .qw.static { opacity: 1; }
.quote__by { position: relative; margin-top: 28px; text-align: center; font: italic 400 24px/1 var(--serif); color: var(--red); }

/* ——— Galerie ——— */
.gallery { position: relative; background: var(--ink); }
.gallery__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.gallery__head { position: absolute; z-index: 1; left: var(--gut); top: calc(var(--bar) + 4svh); width: min(36vw, 540px); }
.gallery__head .h-xl { margin-top: 22px; }
.gallery__hint {
  position: absolute; z-index: 3; left: var(--gut); bottom: calc(3svh + 18px);
  display: flex; align-items: baseline; gap: 18px; font-size: 13px; color: var(--bone-dim); letter-spacing: .04em;
}
.gallery__head { will-change: opacity, transform; }
.gallery__count { font: italic 300 30px/1 var(--serif); color: var(--bone); font-variant-numeric: tabular-nums; }
.gallery__track {
  position: absolute; z-index: 2; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; gap: clamp(28px, 3.6vw, 64px);
  padding: var(--bar) 10vw 0 calc(max(36vw, 520px) + var(--gut) + 4vw);
  will-change: transform;
}
.g-card { position: relative; flex: none; height: calc(var(--h) * .84svh); margin-top: -4svh; aspect-ratio: 3 / 4; transform: translateY(calc(var(--y, 0) * 1svh)); text-align: left; }
.g-card--wide { aspect-ratio: 4 / 3; }
.g-card__img { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; background: var(--ink-3); }
.g-card__img img { position: absolute; top: 0; left: -12%; width: 124%; height: 100%; max-width: none; object-fit: cover; transform: translateX(var(--px, 0px)) scale(1.02); transition: filter .8s var(--ease), scale .9s var(--ease); filter: grayscale(.35) brightness(.88); will-change: transform; }
.g-card:hover .g-card__img img, .g-card:focus-visible .g-card__img img { filter: none; scale: 1.05; }
.g-card__img::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(236, 229, 216, .08); }
.g-card__cap { position: absolute; left: 0; top: calc(100% + 14px); display: flex; gap: 12px; align-items: baseline; font: italic 400 20px/1 var(--serif); white-space: nowrap; }
.g-card__cap b { font: 600 11px/1 var(--sans); letter-spacing: .18em; color: var(--red); font-style: normal; }
.g-more { flex: none; display: grid; place-items: center; height: 60svh; aspect-ratio: 1; }
.g-more__circle {
  width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--bone-line);
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center;
  font: italic 300 clamp(26px, 2.4vw, 40px)/1.1 var(--serif);
  transition: background-color .6s var(--ease), color .6s, border-color .6s;
}
.g-more__circle svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .6s var(--ease); }
.g-more:hover .g-more__circle { background: var(--bone); color: var(--ink); border-color: transparent; }
.g-more:hover svg { transform: translate(4px, -4px); }
.gallery__bar { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 3svh; height: 1px; background: var(--bone-line); }
.gallery__bar i { position: absolute; inset: 0; background: var(--bone); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 899px) {
  .gallery { height: auto !important; padding: 90px 0 70px; }
  .gallery__pin { position: relative; height: auto; overflow: visible; }
  .gallery__head { position: relative; left: auto; top: auto; width: auto; padding: 0 var(--gut); }
  .gallery__how { display: none; }
  .gallery__hint { position: relative; left: auto; bottom: auto; padding: 24px var(--gut) 0; }
  .gallery__head { opacity: 1 !important; transform: none !important; }
  .gallery__track {
    position: relative; transform: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 40px var(--gut) 60px; gap: 16px; scrollbar-width: none;
    align-items: flex-start;
  }
  .gallery__track::-webkit-scrollbar { display: none; }
  .g-card { height: auto; width: 74vw; transform: none; scroll-snap-align: center; }
  .g-card--wide { width: 88vw; }
  .g-card__img img { left: 0; width: 100%; transform: none; }
  .g-more { height: auto; width: 74vw; scroll-snap-align: center; }
  .gallery__bar { bottom: 20px; }
}

/* ——— Volné motivy (světlý list) ——— */
.motifs {
  position: relative; z-index: 3; background: var(--bone); color: var(--ink);
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0;
  padding: clamp(90px, 12vw, 180px) var(--gut) clamp(90px, 12vw, 180px);
}
.motifs .eyebrow { color: rgba(12, 11, 10, .6); }
.motifs__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: clamp(56px, 7vw, 100px); }
.motifs__head .eyebrow { grid-column: 1 / -1; margin-bottom: 26px; }
.motifs__head .h-xl { grid-column: 1 / span 8; }
.motifs__lead { grid-column: 9 / span 4; font-size: 17px; color: rgba(12, 11, 10, .7); max-width: 34ch; }
.flash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); perspective: 1200px; }
.flash__item:nth-child(even) { margin-top: clamp(30px, 5vw, 80px); }
.flash__item figure {
  position: relative; aspect-ratio: 9 / 14; background: var(--paper); border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(12, 11, 10, .06), 0 30px 50px -36px rgba(12, 11, 10, .55);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  transform-style: preserve-3d;
}
.flash__item figure:hover { box-shadow: 0 1px 0 rgba(12, 11, 10, .06), 0 50px 70px -40px rgba(12, 11, 10, .7); }
.flash__item img { position: absolute; inset: 7% 7% 14%; width: 86%; height: 79%; object-fit: contain; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.flash__item--photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.flash__item figure:hover img { transform: scale(1.04); }
.flash__item figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(12, 11, 10, .55);
}
.flash__item figcaption b { font: italic 400 22px/1 var(--serif); letter-spacing: 0; color: var(--red); }
.flash__item--photo figcaption { color: var(--bone); }
.motifs__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: clamp(56px, 7vw, 100px); }
@media (max-width: 899px) {
  .motifs__head .h-xl, .motifs__lead { grid-column: 1 / -1; }
  .motifs__lead { margin-top: 20px; }
  .flash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .flash__item:nth-child(even) { margin-top: 36px; }
}

/* ——— Kontakt ——— */
.contact {
  position: relative; z-index: 4; background: var(--ink);
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0; margin-top: calc(-1 * clamp(24px, 4vw, 56px));
  padding: clamp(96px, 12vw, 180px) var(--gut) 28px;
}
.contact .h-xxl { margin: 28px 0 clamp(56px, 8vw, 120px); max-width: 11ch; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--bone-line); }
.contact__big { display: grid; gap: 14px; padding: clamp(28px, 4vw, 56px) 0; border-bottom: 1px solid var(--bone-line); }
.contact__big + .contact__big { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--bone-line); }
.contact__big small { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim); }
.roll { position: relative; display: block; overflow: hidden; font: 300 clamp(36px, 5vw, 84px)/1.08 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.roll > span { display: block; transition: transform .8s var(--ease); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; font-style: italic; color: var(--red); transition: transform .8s var(--ease); }
.contact__big:hover .roll > span, .contact__big:focus-visible .roll > span { transform: translateY(-100%); }
.contact__big:hover .roll::after, .contact__big:focus-visible .roll::after { transform: translateY(-100%); }
.contact__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(56px, 7vw, 96px); }
.contact__info h3 { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 16px; }
.contact__info p { font-size: 17px; margin-bottom: 12px; max-width: 32ch; }
.socials { display: grid; gap: 4px; }
.foot { margin-top: clamp(80px, 10vw, 160px); }
.foot__word { overflow: hidden; line-height: .8; }
.foot__word span { display: block; font: 300 clamp(96px, 27vw, 460px)/.8 var(--serif); letter-spacing: -.05em; text-align: center; transform: translateY(var(--fy, 0%)); }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; margin-top: 18px; border-top: 1px solid var(--bone-line); font-size: 13px; color: var(--bone-dim); }
@media (max-width: 899px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__big + .contact__big { padding-left: 0; border-left: 0; }
  .roll { font-size: clamp(34px, 10.6vw, 60px); }
  .contact__info { grid-template-columns: 1fr; gap: 32px; }
}

/* ——— Lightbox ——— */
.lb { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb__bg { position: absolute; inset: 0; background: rgba(8, 7, 6, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .6s var(--ease); }
.lb.open .lb__bg { opacity: 1; }
.lb__fig { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: center; pointer-events: none; }
.lb__fig img { max-width: min(88vw, 1100px); max-height: 80svh; width: auto; height: auto; object-fit: contain; transform-origin: 0 0; border-radius: 2px; }
.lb__fig figcaption { font: italic 400 24px/1 var(--serif); opacity: 0; transform: translateY(10px); transition: opacity .5s .25s, transform .7s var(--ease) .25s; }
.lb.open .lb__fig figcaption { opacity: 1; transform: none; }
.lb__btn { position: absolute; z-index: 2; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--bone-line); display: grid; place-items: center; opacity: 0; transition: opacity .5s .2s, background-color .3s; }
.lb.open .lb__btn { opacity: 1; }
.lb__btn:hover { background: rgba(236, 229, 216, .1); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: var(--bone); stroke-width: 1.4; }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: var(--gut); top: 50%; margin-top: -28px; }
.lb__next { right: var(--gut); top: 50%; margin-top: -28px; }
.lb__count { position: absolute; z-index: 2; left: var(--gut); top: 32px; font: italic 300 24px/1 var(--serif); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .lb__prev, .lb__next { top: auto; bottom: 24px; margin: 0; }
  .lb__fig img { max-width: 94vw; max-height: 70svh; }
}

/* ——— Zrno ——— */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(4%, -8%); }
  60% { transform: translate(-10%, -2%); } 80% { transform: translate(8%, 6%); } 100% { transform: translate(0, 0); }
}

/* ——— Omezení pohybu ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grain { animation: none; }
  .loader { display: none; }
}
