/* Preview · the page as a handscroll in three depths: far hills and water, the riverside scene, and close branches and grasses.
   Panned sideways as you read down the page (near faster, far slower), leaning a little away from the cursor. */
.painting { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
.painting.on { opacity: var(--paint-a, .3); }
.painting-strip { position: absolute; left: 0; will-change: transform; transform: translate3d(var(--px, 0px), 0, 0); }
.painting-strip img { display: block; height: 100%; width: auto; max-width: none; }
.painting-strip.far  { top: 6vh;  height: 62vh; }
.painting-strip.mid  { top: 30vh; height: 58vh; }
.painting-strip.near { top: 0;    height: 100vh; opacity: .9; filter: blur(.6px); }
.painting-strip.far img { mix-blend-mode: multiply; filter: saturate(.8); }
.painting-strip img[data-src] { opacity: 0; } .painting-strip img { transition: opacity 1s ease; }
/* fade the painting into the paper at the top and bottom of the screen */
.painting::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--linen) 0%, rgba(246, 241, 233, 0) 18%, rgba(246, 241, 233, 0) 84%, var(--linen) 100%); }
.has-painting .boutiques { background: linear-gradient(180deg, transparent, rgba(251, 248, 243, .55) 40%); }
.has-painting .site-footer { background: rgba(246, 241, 233, .6); }
.has-painting .sky { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
/* phones: two layers, no blur */
@media (max-width: 760px) { .painting-strip.near { display: none; } .painting-strip.far { top: 10vh; height: 40vh; } .painting-strip.mid { top: 38vh; height: 40vh; } }
/* tuning chip, preview only */
.paint-tune { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 70; display: flex; gap: 6px; align-items: center;
  padding: 8px 12px; border-radius: 999px; background: rgba(251, 248, 243, .9); box-shadow: 0 10px 30px -18px rgba(60, 40, 20, .5);
  font: 400 11px/1 var(--sans); letter-spacing: .12em; color: var(--ink-2); }
.paint-tune button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 10px; font: inherit; cursor: pointer; color: inherit; }
.paint-tune button[aria-pressed="true"] { background: var(--gold); color: #fff; border-color: var(--gold); }
/* the far layer's water ends in a straight line: dissolve its lower part into the paper */
.painting-strip.far { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 55%, transparent 96%); }
.painting-strip.mid { -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }

/* ── v1.9 ─────────────────────────────────────────────────────────────── */
/* the hero is the first stretch of the same scroll: warm silk instead of a cool blue sky,
   and the far hills already there, faint, behind the wordmark */
.has-painting .sky { background: linear-gradient(180deg, rgba(234, 226, 210, .82) 0%, rgba(239, 232, 219, .55) 34%, rgba(243, 237, 226, .35) 62%, rgba(246, 241, 233, 0) 100%); }
.has-painting body, body.has-painting { background: var(--linen); }
.has-painting .sky .sun { background: radial-gradient(closest-side, rgba(255, 238, 205, .75), rgba(248, 226, 190, .3) 45%, rgba(248, 226, 190, 0) 72%); }
.has-painting .cloudlayer i, .has-painting .cloudlayer i::before, .has-painting .cloudlayer i::after { filter: sepia(.25); opacity: .85; }
.painting.hero-on { opacity: calc(var(--paint-a, .3) * .7); }
.painting.hero-on .painting-strip.mid, .painting.hero-on .painting-strip.near { opacity: 0; }
.painting-strip.mid, .painting-strip.near { transition: opacity 1s ease; }

/* the strength switch: small, bottom-right, only once the painting is showing */
.paint-tune { left: auto; right: 34px; bottom: 34px; transform: translateY(8px); padding: 6px 8px 6px 12px; gap: 4px; font-size: 11px; letter-spacing: .12em;
  opacity: 0; pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.paint-tune.show { opacity: .72; pointer-events: auto; transform: none; }
.paint-tune.show:hover, .paint-tune:focus-within { opacity: 1; }
.paint-tune span { text-transform: uppercase; margin-right: 4px; }
.paint-tune button { padding: 4px 8px; }
@media (max-width: 760px) { .paint-tune { right: 12px; bottom: 26px; } .paint-tune span { display: none; } }
