/* RIMA PAUKSTE — Woman in Patterns
   Layout concept: a gallery of rooms. Linen-toned walls for reading, night-blue rooms where the paintings hang,
   one painting per view, captions set like museum labels. Single deliberate look (no dark mode): the brand world. */
:root {
  --linen: #EFE9DD;      /* natural linen canvas — the ground of the site */
  --paper: #F8F5EF;      /* soft white for reading surfaces */
  --ink: #1C1B1F;        /* deep charcoal */
  --night: #141823;      /* ultramarine night of the gallery rooms */
  --night-2: #1E2330;
  --stone: #6F685E;      /* muted text */
  --rule: rgba(28, 27, 31, .16);
  --rule-night: rgba(239, 233, 221, .18);
  --gold: #A8803A;       /* ochre gold, from the paintings' leaf and crowns */
  --gold-light: #D2B373;
  --madder: #8E2F23;     /* madder red, used only for state */
  --f-display: "DM Serif Display", "Bodoni 72", Didot, Georgia, serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-label: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --s-0: .78rem; --s-1: .9rem; --s-2: 1.06rem; --s-3: 1.3rem; --s-4: 1.7rem; --s-5: clamp(2rem, 1.2rem + 2.6vw, 3.1rem); --s-6: clamp(2.6rem, 1.2rem + 5vw, 5.6rem);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1320px;
  --measure: 36rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.65; font-optical-sizing: auto; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
.label { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.label--muted { color: var(--stone); }
.display { font-family: var(--f-display); font-weight: 400; line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: var(--s-6); }
h2 { font-size: var(--s-5); }
h3 { font-size: var(--s-4); }
p { margin: 0; }
.lead { font-size: var(--s-3); line-height: 1.5; max-width: 40rem; }
.prose { max-width: var(--measure); display: grid; gap: 1.1em; }
.prose p { hyphens: auto; }
.italic { font-style: italic; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* rhombus — varnakis, the "eye of the crow": the collection's recurring sign, used as a separator */
.sign { display: inline-block; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid currentColor; vertical-align: middle; }
.sign--fill { background: currentColor; }
.signs { display: flex; gap: 14px; align-items: center; color: var(--gold); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { padding-block: clamp(4rem, 9vw, 8.5rem); }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band--paper { background: var(--paper); }
.band--night { background: var(--night); color: var(--linen); }
.band--night .label--muted, .band--night .muted { color: rgba(239, 233, 221, .62); }
.band--night a:hover { color: var(--gold-light); }
.muted { color: var(--stone); }
.stack { display: grid; gap: 1.5rem; }
.stack-lg { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split--rev { grid-template-columns: 7fr 5fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7em; font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; text-decoration: none; padding: 1.05em 1.8em; border: 1px solid currentColor; background: transparent; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.band--night .btn:hover, .hero .btn:hover { background: var(--linen); color: var(--night); border-color: var(--linen); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link-arrow { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: .8em; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: .35em; }
.link-arrow::after { content: "→"; letter-spacing: 0; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.hdr { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; color: var(--linen); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.hdr.is-solid { background: rgba(239, 233, 221, .96); color: var(--ink); box-shadow: 0 1px 0 var(--rule); backdrop-filter: blur(8px); }
.hdr--light { color: var(--ink); }
.brand { font-family: var(--f-display); font-size: 1.32rem; letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: inherit; }
.hdr__nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }
.hdr__nav a, .hdr__nav button { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; background: none; border: 0; cursor: pointer; padding: .4rem 0; }
.hdr__links { display: none; gap: clamp(.9rem, 2vw, 2rem); }
@media (min-width: 1020px) { .hdr__links { display: flex; } }
.cart-count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; margin-left: .35em; border: 1px solid currentColor; border-radius: 50%; font-size: .7rem; letter-spacing: 0; }
.burger { display: inline-flex; align-items: center; gap: .7rem; }
.burger i { display: grid; gap: 5px; width: 22px; }
.burger i::before, .burger i::after { content: ""; height: 1px; background: currentColor; display: block; }

/* full-screen menu */
.menu { position: fixed; inset: 0; z-index: 70; background: var(--night); color: var(--linen); display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu__list { list-style: none; margin: 0; padding: 2rem 0; display: grid; gap: .2rem; align-content: center; }
.menu__list a { font-family: var(--f-display); font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); text-decoration: none; line-height: 1.15; display: inline-block; }
.menu__list a:hover { color: var(--gold-light); }
.menu__list .sub a { font-family: var(--f-text); font-style: italic; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); padding-left: 1.6rem; color: rgba(239, 233, 221, .75); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: end; border-top: 1px solid var(--rule-night); padding-top: 1.4rem; }
.menu__foot a { text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--night); color: var(--linen); min-height: min(100svh, 980px); display: grid; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-top: calc(96px + env(safe-area-inset-top, 0px)); padding-bottom: 3rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 6fr 5fr; padding-bottom: 4rem; } }
.hero__text { display: grid; gap: 1.6rem; align-content: center; }
.hero__name { font-family: var(--f-label); letter-spacing: .5em; text-transform: uppercase; font-size: var(--s-1); color: var(--gold-light); }
.hero__title { font-family: var(--f-display); font-size: clamp(3rem, 1.4rem + 6.4vw, 7.4rem); line-height: .95; letter-spacing: -.01em; margin: 0; }
.hero__title em { font-style: italic; font-family: var(--f-text); font-weight: 300; }
.hero__lead { font-size: var(--s-3); line-height: 1.5; max-width: 32rem; color: rgba(239, 233, 221, .86); }
.hero__art { justify-self: center; width: min(100%, 520px); }
.hero__art img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); animation: rise 1.6s var(--ease) both; }
.hero__cap { margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; color: rgba(239, 233, 221, .62); }
@keyframes rise { from { transform: translateY(18px) scale(.985); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* page hero (interior pages) */
.phero { background: var(--night); color: var(--linen); padding-top: calc(150px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(3rem, 7vw, 6rem); }
.phero--light { background: var(--linen); color: var(--ink); }
.phero .lead { color: rgba(239, 233, 221, .85); }
.phero--light .lead { color: var(--ink); }
.phero__in { display: grid; gap: 1.4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .6rem; font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .18em; text-transform: uppercase; color: rgba(239, 233, 221, .6); }
.phero--light .crumbs { color: var(--stone); }
.crumbs a { text-decoration: none; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- statement ---------- */
.statement { display: grid; gap: 2rem; justify-items: start; }
.statement q { font-family: var(--f-display); font-size: clamp(2.2rem, 1.2rem + 4vw, 4.8rem); line-height: 1.02; quotes: none; }
.statement p { max-width: 42rem; font-size: var(--s-3); line-height: 1.55; }

/* ---------- collection panels ---------- */
.panels { display: grid; gap: 1px; background: var(--rule-night); grid-template-columns: 1fr; }
@media (min-width: 900px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { position: relative; background: var(--night); color: var(--linen); display: grid; grid-template-rows: auto 1fr; text-decoration: none; overflow: hidden; }
.panel__img { overflow: hidden; aspect-ratio: 4 / 5; }
.panel__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.4s var(--ease); }
.panel:hover .panel__img img { transform: scale(1.035); }
.panel:hover { color: var(--linen); }
.panel__body { padding: clamp(1.6rem, 3vw, 2.8rem) clamp(1.2rem, 3vw, 2.8rem) clamp(2rem, 4vw, 3.2rem); display: grid; gap: 1rem; align-content: start; }
.panel__body h3 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }
.panel__body p { max-width: 32rem; color: rgba(239, 233, 221, .78); }

/* ---------- strip of works ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 26vw, 320px); gap: clamp(1rem, 2vw, 1.75rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; scrollbar-width: thin; scrollbar-color: var(--rule-night) transparent; }
.strip > * { scroll-snap-align: start; }

/* ---------- artwork card ---------- */
.works { display: grid; gap: clamp(2.2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2.2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.work { text-decoration: none; display: grid; gap: .9rem; align-content: start; }
.work__img { aspect-ratio: 2 / 3; overflow: hidden; background: var(--night-2); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.work:hover .work__img img { transform: scale(1.03); }
.work__meta { display: grid; gap: .3rem; }
.work__title { font-family: var(--f-display); font-size: 1.32rem; line-height: 1.15; text-wrap: balance; }
.work__sub { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.band--night .work__sub { color: rgba(239, 233, 221, .58); }
.work:hover .work__title { color: var(--gold); }
.band--night .work:hover .work__title { color: var(--gold-light); }
.work__price { font-size: var(--s-1); color: var(--stone); }
.region-h { display: flex; align-items: baseline; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1rem; margin-bottom: 1.6rem; }
.band--night .region-h { border-color: var(--rule-night); }
.region-h .label { color: var(--gold); }
.band--night .region-h .label { color: var(--gold-light); }

/* ---------- artist / concept ---------- */
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center 20%; }
.portrait figcaption { margin-top: .8rem; }
.facts { display: grid; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); padding-top: .2rem; }
.facts dd { margin: 0; }
.pull { font-family: var(--f-display); font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.2rem); line-height: 1.12; max-width: 52rem; text-wrap: balance; }
.themes { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.theme { display: grid; gap: .8rem; align-content: start; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.theme h3 { font-size: 1.6rem; }
.chapter { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .chapter { grid-template-columns: 4fr 8fr; } }
.chapter__no { font-family: var(--f-display); font-size: 3.2rem; color: var(--gold); line-height: 1; }
.chapter h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); margin-top: .6rem; }
.chapter .prose { font-size: 1.12rem; }
.figure-wide { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: var(--rule-night); }
.figure-wide img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.figure-wide a { display: block; }

/* ---------- artwork page ---------- */
.art { background: var(--night); color: var(--linen); padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
.art__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
@media (min-width: 980px) { .art__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } .art__stage { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); } }
.art__stage { display: grid; gap: 1rem; justify-items: center; }
.art__frame { position: relative; width: min(100%, calc((100svh - 190px) * .6667)); min-width: min(100%, 300px); cursor: zoom-in; border: 0; padding: 0; background: none; display: block; }
.art__frame img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.art__tools { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; color: rgba(239, 233, 221, .7); }
.art__tools button { background: none; border: 0; cursor: pointer; font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .18em; text-transform: uppercase; display: inline-flex; gap: .6rem; align-items: center; padding: .5rem 0; }
.art__tools button:hover { color: var(--gold-light); }
.art__info { display: grid; gap: 1.8rem; align-content: start; }
.art__info h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.7rem); }
.art__orig { font-style: italic; color: rgba(239, 233, 221, .7); }
.spec { display: grid; gap: 0; border-top: 1px solid var(--rule-night); }
.spec div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--rule-night); }
.spec dt { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .16em; text-transform: uppercase; color: rgba(239, 233, 221, .58); padding-top: .2rem; }
.spec dd { margin: 0; }
.buy { background: var(--paper); color: var(--ink); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; }
.buy h2 { font-size: 1.55rem; }
.buy .lead { font-size: 1rem; }
.opts { display: grid; gap: .6rem; border: 0; padding: 0; margin: 0; }
.opts legend { margin-bottom: .6rem; padding: 0; }
.opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .95rem 1.1rem; border: 1px solid var(--rule); cursor: pointer; transition: border-color .25s; }
.opt:hover { border-color: var(--ink); }
.opt input { appearance: none; width: 14px; height: 14px; border: 1px solid var(--ink); transform: rotate(45deg); margin: 0 .2rem; display: grid; place-content: center; cursor: pointer; }
.opt input:checked { background: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--linen); }
.opt__name { display: grid; line-height: 1.3; }
.opt__name small { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .12em; color: var(--stone); }
.opt__price { font-family: var(--f-display); font-size: 1.25rem; }
.note { font-size: .92rem; color: var(--stone); line-height: 1.5; }
.note--line { border-top: 1px solid var(--rule); padding-top: 1rem; }
.orig { display: grid; gap: .9rem; border: 1px solid var(--rule-night); padding: clamp(1.4rem, 3vw, 2rem); }
.status { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .16em; text-transform: uppercase; }
.status::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-light); }
.status--sold::before { background: var(--madder); }
.status--reserved::before { background: transparent; border: 1px solid var(--gold-light); }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 1rem 1.4rem; z-index: 90; display: flex; gap: 1.2rem; align-items: center; transition: transform .45s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast a { color: var(--gold-light); font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .16em; text-transform: uppercase; }

.reading { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 980px) { .reading { grid-template-columns: 4fr 8fr; } }
.epi { font-family: var(--f-text); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.42; max-width: 40rem; font-weight: 300; }
.more { max-width: var(--measure); }
.more summary { list-style: none; cursor: pointer; margin-top: 1.6rem; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { display: none; }
.colours { display: grid; gap: .7rem; list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.colours li { padding-left: 1.6rem; position: relative; }
.colours li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.scale { display: grid; gap: .8rem; }
.scale img { width: 100%; max-width: 420px; aspect-ratio: 1781 / 2693; object-fit: cover; }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.pager a { padding: 1.6rem 0; text-decoration: none; display: grid; gap: .4rem; }
.pager a + a { text-align: right; border-left: 1px solid var(--rule); padding-left: 1.2rem; }
.pager a:first-child { padding-right: 1.2rem; }
.pager .t { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; }

/* zoom viewer */
.zoom { position: fixed; inset: 0; z-index: 95; background: #0B0D12; color: var(--linen); display: grid; grid-template-rows: auto 1fr; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; touch-action: none; }
.zoom.is-open { opacity: 1; visibility: visible; }
.zoom__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: max(14px, env(safe-area-inset-top, 0px)) var(--gutter-r) 14px var(--gutter); }
.zoom__bar button { background: none; border: 1px solid var(--rule-night); color: inherit; cursor: pointer; font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .16em; text-transform: uppercase; padding: .6rem 1rem; }
.zoom__ctl { display: flex; gap: .5rem; }
.zoom__view { position: relative; overflow: hidden; cursor: grab; }
.zoom__view:active { cursor: grabbing; }
.zoom__view img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }

/* ---------- shop / books ---------- */
.books { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.book { display: grid; gap: 1.2rem; text-decoration: none; align-content: start; }
.book__img { background: var(--paper); padding: clamp(1.5rem, 4vw, 3rem); display: grid; place-items: center; }
.book__img img { width: 78%; box-shadow: 0 22px 40px rgba(28, 27, 31, .18); transition: transform .8s var(--ease); }
.book:hover .book__img img { transform: translateY(-6px); }
.book__price, .price { font-family: var(--f-display); font-size: 1.5rem; }
.shop-areas { display: grid; gap: 1px; background: var(--rule); grid-template-columns: 1fr; border: 1px solid var(--rule); }
@media (min-width: 900px) { .shop-areas { grid-template-columns: repeat(3, 1fr); } }
.shop-area { background: var(--linen); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; text-decoration: none; grid-template-rows: auto auto 1fr auto; }
.shop-area:hover { background: var(--paper); color: inherit; }
.shop-area .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shop-area .thumbs img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.shop-area .thumbs--book { grid-template-columns: 1fr 1fr; background: var(--paper); padding: 1rem; }
.shop-area .thumbs--book img { aspect-ratio: auto; }

/* flipbook */
.flip { display: grid; gap: 1.2rem; }
.flip__stage { position: relative; perspective: 2400px; background: var(--night-2); padding: clamp(1rem, 3vw, 2.5rem); display: grid; place-items: center; min-height: 260px; }
.flip__spread { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 980px); aspect-ratio: 1530 / 986; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); background: var(--paper); position: relative; user-select: none; transition: transform .7s var(--ease), opacity .35s; }
.flip__spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .10) 45%, rgba(0, 0, 0, .18) 50%, rgba(0, 0, 0, .10) 55%, transparent); pointer-events: none; }
.flip__spread.is-turn-next { transform: rotateY(-8deg) translateX(-1%); opacity: .2; }
.flip__spread.is-turn-prev { transform: rotateY(8deg) translateX(1%); opacity: .2; }
.flip__page { position: relative; overflow: hidden; display: grid; place-items: center; }
.flip__page img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.flip__page .blank { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); padding: 1rem; text-align: center; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(28, 27, 31, .035) 14px 15px); width: 100%; height: 100%; display: grid; place-items: center; }
.flip__no { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-family: var(--f-label); font-size: .68rem; color: var(--stone); }
@media (max-width: 680px) { .flip__spread { grid-template-columns: 1fr; aspect-ratio: 765 / 986; width: min(100%, 460px); } .flip__spread::after { display: none; } .flip__page.is-hidden-sm { display: none; } }
.flip__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flip__nav button { background: none; border: 1px solid var(--rule); padding: .8rem 1.1rem; cursor: pointer; font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .16em; text-transform: uppercase; }
.flip__nav button:disabled { opacity: .35; cursor: default; }
.flip__dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.flip__dots button { width: 9px; height: 9px; padding: 0; border: 1px solid var(--ink); transform: rotate(45deg); background: transparent; cursor: pointer; }
.flip__dots button[aria-current="true"] { background: var(--ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 0; padding: .85rem .9rem; width: 100%; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .err { color: var(--madder); font-size: .88rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; font-size: .95rem; }
.check input { margin-top: .3rem; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { border: 1px solid var(--rule); padding: 1.5rem; display: grid; gap: .6rem; background: var(--paper); }
.band--night .field label { color: rgba(239, 233, 221, .6); }

/* dialog */
.dlg { border: 0; padding: 0; max-width: min(640px, calc(100% - 32px)); width: 100%; background: var(--linen); color: var(--ink); max-height: calc(100svh - 40px); }
.dlg::backdrop { background: rgba(11, 13, 18, .72); }
.dlg__in { padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; gap: 1.4rem; }
.dlg__hd { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.dlg__hd h2 { font-size: 1.9rem; }
.x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }

/* cart */
.cart { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .cart { grid-template-columns: 7fr 5fr; } }
.cart > * { min-width: 0; }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.line img { width: 88px; aspect-ratio: 2 / 3; object-fit: cover; }
.line__t { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.2; }
.line__ctl { display: flex; gap: 1rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }
.line__ctl select { font: inherit; padding: .3rem .4rem; background: var(--paper); border: 1px solid var(--rule); }
.line__ctl button { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: .9rem; color: var(--stone); padding: 0; }
.summary { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; }
.summary .tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--rule); padding-top: 1rem; }
.summary .tot strong { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; }
.ship-msg { font-size: .95rem; padding: .8rem 1rem; border-left: 2px solid var(--gold); background: var(--linen); }
.ship-msg--no { border-color: var(--madder); }

/* legal */
.legal { display: grid; gap: 2.2rem; max-width: 46rem; }
.legal section { display: grid; gap: .8rem; }
.legal h2 { font-size: 1.5rem; }
.legal p { font-size: 1rem; }
.draft { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .14em; text-transform: uppercase; border: 1px dashed var(--gold); padding: .8rem 1rem; color: var(--stone); }

/* ---------- footer ---------- */
.ftr { background: var(--night); color: var(--linen); padding-top: clamp(4rem, 8vw, 6rem); padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px)); }
.ftr__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ftr__grid h2 { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; font-weight: 500; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ftr a { text-decoration: none; }
.ftr__brand { font-family: var(--f-display); font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); letter-spacing: .08em; line-height: 1; margin-bottom: 3rem; }
.ftr__base { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-night); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .88rem; color: rgba(239, 233, 221, .6); }
.ftr__base button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: inherit; font-size: inherit; }

/* cookie banner */
.ck { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 80; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .28); padding: 1.3rem 1.4rem; display: grid; gap: 1rem; max-width: 560px; }
.ck p { font-size: .95rem; line-height: 1.5; }
.ck__btns { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.ck__btns .btn { padding: .85em 1.3em; }

/* preview notice */
.pv { background: var(--gold); color: var(--ink); font-family: var(--f-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: .45rem var(--gutter-r) .45rem var(--gutter); position: relative; z-index: 55; }

/* =========================================================
   Refinements — round 2
   ========================================================= */
:root { --f-brand: "Quattrocento Sans", "Gill Sans", "Trebuchet MS", sans-serif; --paper-page: #FBF9F4; }
/* wordmark: same lettering as the artist's original site (Quattrocento Sans Bold, +0.04em) */
.brandmark { font-family: var(--f-brand); font-weight: 700; letter-spacing: .04em; text-transform: none; }
.brand.brandmark { font-size: 1.45rem; letter-spacing: .04em; }
.ftr__brand.brandmark { letter-spacing: .04em; }
.hero__name.brandmark { font-size: clamp(1.15rem, .9rem + .9vw, 1.6rem); letter-spacing: .04em; color: var(--linen); }

/* ---------- art books: gallery wall ---------- */
.books-wall { background: radial-gradient(ellipse 60% 55% at 25% 30%, rgba(210, 179, 115, .10), transparent 70%), radial-gradient(ellipse 60% 55% at 75% 30%, rgba(210, 179, 115, .10), transparent 70%), var(--night); color: var(--linen); }
.bookshow { display: grid; grid-template-columns: 1fr; gap: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 6vw, 7rem); padding-block: clamp(1rem, 3vw, 2.5rem); }
@media (min-width: 820px) { .bookshow { grid-template-columns: 1fr 1fr; } }
.bk { display: grid; gap: 1.8rem; justify-items: center; text-align: center; }
.bk__cover { position: relative; display: block; border: 0; padding: 0; background: none; cursor: zoom-in; width: min(100%, 440px); perspective: 1600px; }
.bk__cover img { width: 100%; height: auto; transform-origin: 0 50%; transition: transform .9s var(--ease), box-shadow .9s var(--ease);
  box-shadow: -1px 0 0 rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .25), 0 24px 40px -12px rgba(0, 0, 0, .55), 0 60px 90px -30px rgba(0, 0, 0, .6); }
.bk__cover::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 26px; background: radial-gradient(ellipse at 50% 0, rgba(0, 0, 0, .45), transparent 70%); filter: blur(4px); pointer-events: none; }
.bk__cover:hover img, .bk__cover:focus-visible img { transform: rotateY(-9deg) translateX(-4px); box-shadow: -1px 0 0 rgba(0, 0, 0, .25), 6px 4px 8px rgba(0, 0, 0, .25), 18px 30px 50px -12px rgba(0, 0, 0, .6), 30px 70px 100px -30px rgba(0, 0, 0, .65); }
.bk__peek { position: absolute; left: 50%; bottom: 1.2rem; transform: translate(-50%, 8px); background: rgba(20, 24, 35, .82); color: var(--linen); padding: .6rem 1rem; opacity: 0; transition: opacity .4s, transform .4s var(--ease); white-space: nowrap; backdrop-filter: blur(4px); }
.bk__cover:hover .bk__peek, .bk__cover:focus-visible .bk__peek { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .bk__peek { opacity: 1; transform: translate(-50%, 0); } }
.bk__meta { display: grid; gap: .9rem; justify-items: center; max-width: 30rem; }
.bk__k { color: rgba(239, 233, 221, .6); }
.bk__t { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); }
.bk__t a { text-decoration: none; }
.bk__row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: center; }
.bk__price { font-family: var(--f-display); font-size: 1.6rem; margin-right: .6rem; }
.btn--light { background: var(--linen); color: var(--night); border-color: var(--linen); }
.books-wall .btn--light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--night); }
.shop-area .thumbs--book { background: none; padding: .4rem 1.2rem 1.2rem; gap: 1.2rem; }
.shop-area .thumbs--book img { box-shadow: 0 10px 22px -8px rgba(28, 27, 31, .45); }
/* book product page */
.bkp { display: grid; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: 1fr; align-items: center; margin-top: 2.5rem; }
@media (min-width: 900px) { .bkp { grid-template-columns: 6fr 5fr; } }
.bkp > * { min-width: 0; }
.bkp__cover { display: grid; place-items: center; }
.bkp__cover .bk__cover { width: min(100%, 520px); }
.books-wall .buy { background: var(--paper); }

/* ---------- page-turning reader ---------- */
.reader { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: radial-gradient(ellipse 70% 60% at 50% 45%, #232838, #0B0D12 75%); color: var(--linen); }
.reader::backdrop { background: #0B0D12; }
.reader__in { height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; gap: .6rem; padding: max(14px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter); }
.reader__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.reader__x { background: none; border: 1px solid var(--rule-night); color: inherit; padding: .6rem 1rem; cursor: pointer; }
.reader__nav { display: flex; justify-content: center; align-items: center; gap: 1.4rem; }
.rnav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--rule-night); background: rgba(239, 233, 221, .04); color: var(--linen); font-size: 1.2rem; cursor: pointer; transition: background .3s, opacity .3s; }
.rnav:hover:not(:disabled) { background: rgba(239, 233, 221, .14); }
.rnav:disabled { opacity: .25; cursor: default; }
.reader__count { min-width: 9rem; text-align: center; color: rgba(239, 233, 221, .75); }
.reader__hint { text-align: center; font-size: .82rem; color: rgba(239, 233, 221, .45); }
.reader-inline { display: grid; gap: 1rem; }
.reader-inline .rb { height: min(78svh, 760px); }
.rb { position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rb__book { position: relative; perspective: 2600px; transition: transform .9s var(--ease); }
.rb__book.is-closed { transform: translateX(-25%); }
.rb.is-single .rb__book.is-closed { transform: none; }
.rb__page, .rb__face { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; background: var(--paper-page); }
.rb.is-single .rb__page, .rb.is-single .rb__face { width: 100%; }
.rb__l { left: 0; box-shadow: inset -26px 0 30px -18px rgba(0, 0, 0, .28); }
.rb__r { right: 0; box-shadow: inset 26px 0 30px -18px rgba(0, 0, 0, .22); }
.rb.is-single .rb__r { box-shadow: inset 10px 0 18px -12px rgba(0, 0, 0, .25); }
.rb__l:empty, .rb__r:empty { background: transparent; box-shadow: none; }
.rb__book::before { content: ""; position: absolute; inset: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 12px 24px rgba(0, 0, 0, .35); pointer-events: none; }
.rb__book.is-closed::before { left: 50%; }
.rb.is-single .rb__book::before { left: 0; }
.rb__page img, .rb__face img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.rb__page img.is-cover, .rb__face img.is-cover { object-fit: fill; }
.rb__leaf { position: absolute; top: 0; height: 100%; width: 50%; right: 0; transform-style: preserve-3d; transform-origin: 0 50%; will-change: transform; z-index: 5; pointer-events: none; }
.rb__leaf.is-left { right: auto; left: 0; transform-origin: 100% 50%; }
.rb.is-single .rb__leaf { width: 100%; }
.rb__face { left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rb__back { transform: rotateY(180deg); }
.rb__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.rb__front .rb__shade { background: linear-gradient(to left, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05) 35%, rgba(255, 255, 255, .08) 70%, rgba(0, 0, 0, .18)); }
.rb__back .rb__shade { background: linear-gradient(to right, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05) 35%, rgba(255, 255, 255, .06) 70%, rgba(0, 0, 0, .2)); }
.rb__under { position: absolute; top: 0; height: 100%; width: 50%; pointer-events: none; opacity: 0; z-index: 4; }
.rb__blank { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: .8rem; color: #A39C90; background: var(--paper-page); text-align: center; padding: 1rem; }
.rb__blank .sign { color: #C9BFA9; }
.rb__blank span { font-family: var(--f-label); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.rb__no { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--f-label); font-size: .62rem; color: #8C8579; }
.rb__hit { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 6; cursor: pointer; }
.rb__hit--l { left: 0; } .rb__hit--r { right: 0; }
.rb.is-single .rb__hit--l { width: 30%; } .rb.is-single .rb__hit--r { width: 70%; }
.rb__book.is-closed .rb__hit--l { pointer-events: none; }

/* ---------- homepage: the painting lit as in a museum ---------- */
@property --lx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --ly { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --lr { syntax: "<percentage>"; inherits: false; initial-value: 140%; }
.hero { isolation: isolate; }
.hero__beam { position: absolute; z-index: 0; top: -10%; right: 2%; width: min(70vw, 900px); height: 120%; pointer-events: none;
  background: linear-gradient(200deg, rgba(232, 205, 150, .16), rgba(232, 205, 150, .05) 45%, transparent 75%);
  clip-path: polygon(48% 0, 62% 0, 100% 100%, 8% 100%); filter: blur(14px); opacity: .7; }
.hero__dust { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__grid { position: relative; z-index: 2; }
.hero__orn { width: 168px; height: 10px; fill: none; stroke: var(--gold-light); stroke-width: 1; opacity: .8; }
.hero__orn path { stroke-dasharray: 520; stroke-dashoffset: 0; }
.stage { position: relative; transform-style: preserve-3d; transform: perspective(1600px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.stage__link { display: block; }
.hero__art .stage__img { animation: none; box-shadow: calc(var(--sx, 0) * 1px) calc(40px + var(--sy, 0) * 1px) 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3); transition: box-shadow 1.2s cubic-bezier(.2, .7, .1, 1); }
.stage::before { content: ""; position: absolute; inset: -14% -18%; z-index: -1; background: radial-gradient(ellipse at 50% 42%, rgba(222, 190, 120, .22), transparent 62%); filter: blur(10px); pointer-events: none; }
.stage__veil, .stage__glint { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.stage__veil { background: radial-gradient(circle at var(--lx) var(--ly), rgba(12, 14, 20, 0) 0, rgba(12, 14, 20, 0) calc(var(--lr) * .55), rgba(12, 14, 20, .97) var(--lr)); }
.stage__glint { background: linear-gradient(112deg, transparent 38%, rgba(255, 228, 165, .0) 44%, rgba(255, 232, 175, .5) 50%, rgba(255, 228, 165, 0) 56%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: soft-light; }

/* opening sequence (only with JS + motion allowed) */
.rp-anim .hero__beam { animation: beam-in 3.4s ease-out both, flicker 7s ease-in-out 3.4s infinite; }
.rp-anim .stage__veil { animation: unveil 3.6s cubic-bezier(.45, .05, .25, 1) .2s both; }
.rp-anim .stage__glint { animation: glint 2.8s ease-in-out 2.2s both, glint-loop 18s ease-in-out 6s infinite; }
.rp-anim .stage { animation: settle 3.8s cubic-bezier(.2, .7, .1, 1) both; }
.rp-anim .stage::before { animation: halo 4s ease-out .6s both, breathe 9s ease-in-out 4.6s infinite; }
.rp-anim .hero__name span { display: inline-block; animation: ink 1.1s cubic-bezier(.2, .7, .1, 1) calc(.5s + var(--i) * 55ms) both; }
.rp-anim .hero__orn path { animation: draw 2.4s ease-in-out 1.1s both; }
.rp-anim .hero__title .w { display: inline-block; animation: ink 1.5s cubic-bezier(.2, .7, .1, 1) calc(1.3s + var(--i) * 180ms) both; }
.rp-anim .hero__lead { animation: rise 1.4s cubic-bezier(.2, .7, .1, 1) 2.1s both; }
.rp-anim .hero__text > div { animation: rise 1.4s cubic-bezier(.2, .7, .1, 1) 2.4s both; }
.rp-anim .hero__cap { animation: rise 1.4s cubic-bezier(.2, .7, .1, 1) 3s both; }
.rp-quick .stage__veil, .rp-quick .hero__beam, .rp-quick .stage, .rp-quick .stage::before { animation-duration: 1.4s; animation-delay: 0s; }
.rp-quick .hero__name span, .rp-quick .hero__title .w, .rp-quick .hero__lead, .rp-quick .hero__text > div, .rp-quick .hero__cap, .rp-quick .hero__orn path { animation-delay: 0s; animation-duration: .9s; }
.rp-quick .stage__glint { animation: glint-loop 18s ease-in-out 3s infinite; }
@keyframes unveil {
  0% { opacity: 1; --lx: 78%; --ly: 4%; --lr: 0%; }
  45% { opacity: 1; --lx: 58%; --ly: 32%; --lr: 70%; }
  80% { opacity: .55; --lx: 50%; --ly: 46%; --lr: 120%; }
  100% { opacity: 0; --lx: 50%; --ly: 50%; --lr: 160%; } }
@keyframes glint { 0% { opacity: 0; background-position: 130% 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
@keyframes glint-loop { 0%, 84% { opacity: 0; background-position: 130% 0; } 88% { opacity: .55; } 97% { opacity: .55; } 100% { opacity: 0; background-position: -30% 0; } }
@keyframes settle { from { transform: perspective(1600px) translateY(14px) scale(.975) rotateX(2deg); } to { transform: perspective(1600px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); } }
@keyframes halo { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes beam-in { from { opacity: 0; } to { opacity: .7; } }
@keyframes flicker { 0%, 100% { opacity: .7; } 22% { opacity: .62; } 40% { opacity: .76; } 63% { opacity: .66; } 81% { opacity: .73; } }
@keyframes ink { from { opacity: 0; filter: blur(7px); transform: translateY(.18em); } to { opacity: 1; filter: none; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__dust { display: none; } }
.rb__page::after, .rb__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.rb__l::after { background: linear-gradient(to left, rgba(0, 0, 0, .16), rgba(0, 0, 0, .04) 5%, transparent 12%); }
.rb__r::after { background: linear-gradient(to right, rgba(0, 0, 0, .14), rgba(0, 0, 0, .03) 5%, transparent 12%); }
.rb.is-single .rb__r::after { background: linear-gradient(to right, rgba(0, 0, 0, .10), transparent 6%); }
.rb__l:empty::after, .rb__r:empty::after { display: none; }
.bk__price { flex-basis: 100%; margin: 0 0 .2rem; text-align: center; }

/* intro film over the hero painting: plays on every load, then dissolves into the original picture */
.stage__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity 1.1s ease; background: #0B0D12; }
.rp-anim .stage__vid { opacity: 1; }
.rp-anim .stage__vid.is-done { opacity: 0; }
.stage__vid.is-off { display: none; }
.rp-anim .stage__veil, .rp-anim .stage__glint { animation: none; }

/* print specification */
.pinfo { display: grid; gap: 1.6rem; }
.pinfo__b { display: grid; gap: .7rem; border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.pinfo__h { font-family: var(--f-label); font-size: var(--s-0); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--gold); }
.pinfo p { font-size: 1rem; }
.pinfo--compact { gap: 1.1rem; margin-top: 1rem; }
.pinfo--compact p { font-size: .92rem; color: var(--stone); line-height: 1.55; }
.bk__del { display: block; font-family: var(--f-text); font-size: .9rem; color: rgba(239, 233, 221, .6); margin-top: .3rem; }

/* ---------- cart: quantity stepper, totals, order confirmation ---------- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--rule); background: var(--paper); }
.qty button { width: 2.6rem; min-height: 2.6rem; background: none; border: 0; font-size: 1.15rem; line-height: 1; cursor: pointer; color: inherit; }
.qty button:hover:not([disabled]) { background: var(--linen); }
.qty button[disabled] { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 2.2rem; display: grid; place-items: center; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); font-size: .95rem; }
.line__ctl .line__rm { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: .9rem; color: var(--stone); padding: .4rem 0; }
.line .line__t { display: block; text-decoration: none; color: inherit; }
.line .price { font-size: 1.05rem; white-space: nowrap; }
.summary .tot--sub { border-top: 0; padding-top: 0; font-size: .95rem; }
.summary .tot--sub + .tot--sub { margin-top: -.5rem; }
.summary .tot--sub .label { font-size: var(--s-0); }
.order { max-width: 40rem; background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: .9rem; }
.order .tot { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-top: 1px solid var(--rule); padding-top: .8rem; }
.order .tot--grand strong.num { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.order-lines { display: grid; gap: .8rem; }
.next-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 680px) {
  .line { grid-template-columns: 64px 1fr; }
  .line img { width: 64px; }
  .line .price { grid-column: 2; }
}
.line__ctl .qty button { text-decoration: none; padding: 0; font-size: 1.15rem; color: inherit; }
