/* Sarah Pardoe Paintings — palette taken from the photographs: umber, oxblood plaster, moss, indigo, linen, old gilt */
:root {
  color-scheme: dark;
  --umbra: #0b0806;
  --linen: #e9dfca;
  --linen-soft: #d6cab2;
  --linen-dim: #a99d86;
  --gilt: #b8944a;
  --gilt-hi: #e2c784;
  --dot: #c0392b;
  --display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --display-style: italic;   /* how the large titles are set */
  --display-weight: 400;
  --display-track: -.03em;
  --text: "Spectral", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(22px, 4.6vw, 72px);
  --max: 1320px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2)); /* the left and right edge every block shares */
  --bar: 64px;
  --ease: cubic-bezier(.2, .7, .15, 1);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--umbra); color: var(--linen); font: 400 1.0625rem/1.65 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style); line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gilt-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--linen); color: var(--umbra); padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 55% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%); }
main, .foot { position: relative; z-index: 2; }

/* ——— bar ——— */
.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 30; display: flex; align-items: center; gap: 34px; padding: 0 var(--edge); }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 8, 6, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(184, 148, 74, .18); opacity: 0; transition: opacity .5s ease; }
.past-film .bar::before, .static .bar::before { opacity: 1; }
.bar__brand { font: italic 500 1.35rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.bar__nav { display: flex; gap: 28px; }
.bar__nav a, .foot__nav a { text-decoration: none; font-size: .98rem; padding-bottom: 3px; background: linear-gradient(var(--gilt-hi), var(--gilt-hi)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.bar__nav a:hover, .bar__nav a:focus-visible, .foot__nav a:hover, .foot__nav a:focus-visible { background-size: 100% 1px; }
.bar__tools { display: flex; gap: 10px; margin-left: auto; }
.tool { white-space: nowrap; background: rgba(11, 8, 6, .45); border: 1px solid rgba(184, 148, 74, .5); color: var(--linen); padding: 8px 16px; font-size: .92rem; border-radius: 2px; transition: border-color .25s, background-color .25s, color .25s; }
.tool:hover { border-color: var(--gilt-hi); background: rgba(184, 148, 74, .16); }
.count { display: inline-block; min-width: 1.5em; margin-left: 4px; padding: 0 5px; text-align: center; background: var(--gilt); color: var(--umbra); border-radius: 1em; font-weight: 600; font-size: .82rem; }

.btn { display: inline-block; padding: 16px 30px; text-decoration: none; border: 1px solid var(--gilt); background: var(--gilt); color: var(--umbra); font: 600 1.02rem/1 var(--text); border-radius: 2px; transition: background-color .25s, border-color .25s, color .25s; }
.btn:hover { background: var(--gilt-hi); border-color: var(--gilt-hi); }
.btn--ghost { background: rgba(11, 8, 6, .35); color: var(--linen); }
.btn--ghost:hover { background: rgba(184, 148, 74, .2); border-color: var(--gilt-hi); }
.btn--dark { background: #2a2018; color: var(--linen); border-color: #2a2018; }
.btn--dark:hover { background: #45362a; border-color: #45362a; }
.linkbtn { background: none; border: 0; padding: 2px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(184, 148, 74, .7); font-size: .95rem; text-align: left; transition: color .25s, text-decoration-color .25s; }
.linkbtn:hover { color: var(--gilt-hi); text-decoration-color: var(--gilt-hi); }

.price { font: 500 1.45rem/1 var(--text); letter-spacing: .01em; font-variant-numeric: lining-nums; margin-top: 16px; }
.status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: .95rem; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.status--reserved i { background: linear-gradient(90deg, var(--dot) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--dot); }

/* ——— hero: a title sequence. Paint fills the screen, the light crosses it, and the name stands in the middle ——— */
.hero { height: 100vh; height: 100svh; }
.hero__layer { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; overflow: hidden; pointer-events: none; text-align: center; }
.hero__layer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 62% at 50% 50%, rgba(5, 4, 3, .62), rgba(5, 4, 3, .3) 55%, rgba(5, 4, 3, .1) 100%), linear-gradient(rgba(5, 4, 3, .55), rgba(5, 4, 3, 0) 22%, rgba(5, 4, 3, 0) 70%, rgba(5, 4, 3, .7)); }
.hero__img { display: none; }
.hero__text { position: relative; display: grid; justify-items: center; padding: var(--bar) var(--gutter) 0; width: 100%; }
.hero__text > * { pointer-events: auto; }
.hero h1 { font-size: clamp(3.4rem, 12.4vw, 17rem); line-height: .92; letter-spacing: -.035em; padding: .04em .08em .1em; text-shadow: 0 2px 60px rgba(0, 0, 0, .55); animation: title-in 1.5s var(--ease) .15s both; }
.byline { font: italic 400 clamp(1.3rem, 2.5vw, 2.6rem)/1 var(--display); color: var(--gilt-hi); margin-top: .12em; text-shadow: 0 1px 24px rgba(0, 0, 0, .7); animation: text-in 1.2s ease .8s both; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.4rem); font-style: italic; margin-top: clamp(22px, 4.2vh, 52px); color: var(--linen); text-shadow: 0 1px 18px rgba(0, 0, 0, .8); animation: text-in 1.2s ease 1.1s both; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(22px, 3.6vh, 40px); animation: text-in 1.2s ease 1.35s both; }
.hero__actions .btn { background: rgba(11, 8, 6, .42); color: var(--linen); border-color: rgba(226, 199, 132, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__actions .btn:hover { background: var(--gilt-hi); color: var(--umbra); border-color: var(--gilt-hi); }
.hero__cue { position: absolute; left: 50%; bottom: clamp(18px, 3.4vh, 38px); transform: translateX(-50%); font: italic 400 .9rem/1 var(--text); color: var(--linen-soft); padding-bottom: 46px; animation: text-in 1.2s ease 2.2s both; }
.hero__cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px; background: linear-gradient(var(--gilt-hi), rgba(226, 199, 132, 0)); transform-origin: top; animation: cue 2.6s cubic-bezier(.6, 0, .2, 1) 2.6s infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes title-in { from { opacity: 0; transform: translateY(.14em) scale(1.03); filter: blur(10px); } }
@keyframes text-in { from { opacity: 0; transform: translateY(10px); } }
/* ——— the walk through the atelier ——— */
.film { position: relative; cursor: zoom-in; }
.film__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; pointer-events: none; overflow: hidden; }
.card { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1.2s var(--ease); }
.card.is-on { opacity: 1; transform: none; }
.card__num { font: italic 400 1.5rem/1 var(--display); color: var(--gilt-hi); }
.card h2 { font-size: clamp(3rem, 9.5vw, 10rem); letter-spacing: -.02em; margin-top: 14px; }
.card p { margin-top: 22px; max-width: 28em; font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--linen-soft); }

.caption { position: absolute; left: var(--edge); bottom: clamp(32px, 9vh, 96px); width: min(27rem, 34vw); pointer-events: none; }
.caption > * { opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform 1.1s var(--ease); }
.caption.is-on { pointer-events: auto; cursor: auto; }
.caption.is-on > * { opacity: 1; transform: none; }
.caption.is-on > :nth-child(2) { transition-delay: .08s; } .caption.is-on > :nth-child(3) { transition-delay: .16s; } .caption.is-on > :nth-child(4) { transition-delay: .24s; }
.caption.is-on > :nth-child(5) { transition-delay: .32s; } .caption.is-on > :nth-child(6) { transition-delay: .4s; } .caption.is-on > :nth-child(7) { transition-delay: .48s; }
.caption__suite { font: italic 400 1.05rem/1 var(--display); color: var(--gilt-hi); margin-bottom: 14px; }
.caption h2 { font-size: clamp(2.2rem, 4.2vw, 4.6rem); letter-spacing: -.015em; }
.caption__meta { margin-top: 16px; color: var(--linen-dim); font-size: .98rem; line-height: 1.5; }
.caption__note { margin-top: 14px; color: var(--linen-soft); }
.caption__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.caption__actions .btn { padding: 13px 22px; }
[data-back] { display: none; }
.from-works [data-back] { display: inline-block; }

.rail { position: absolute; right: clamp(14px, 1.8vw, 34px); top: 50%; transform: translateY(-50%); display: grid; gap: 16px; pointer-events: auto; cursor: auto; }
.rail__suite { display: grid; gap: 2px; justify-items: end; }
.rail__suite > span { font: italic 400 .85rem/1 var(--display); color: var(--linen-dim); margin-bottom: 4px; padding-right: 2px; transition: color .4s, transform .4s; transform-origin: right center; }
.rail__suite > span.is-current { color: var(--gilt-hi); transform: scale(1.5); }
.rail button { position: relative; background: none; border: 0; padding: 5px 0 5px 12px; display: flex; align-items: center; gap: 10px; }
.rail i { display: block; width: 18px; height: 1px; background: var(--linen-dim); transition: width .3s, background .3s; }
.rail b { position: absolute; right: 30px; white-space: nowrap; font: italic 400 .9rem/1 var(--display); color: var(--linen); opacity: 0; transition: opacity .25s; pointer-events: none; }
.rail button:hover b, .rail button:focus-visible b { opacity: 1; }
.rail button:hover i { background: var(--linen); }
.rail button[aria-current="true"] i { width: 34px; background: var(--gilt-hi); height: 2px; }

.hint { position: absolute; left: 50%; top: calc(var(--bar) + 16px); transform: translateX(-50%); font-style: italic; font-size: .92rem; color: var(--linen-dim); opacity: 0; transition: opacity .8s; white-space: nowrap; }
.hint.is-on { opacity: 1; }
.hint.is-gone { display: none; }

.study { position: fixed; inset: 0; z-index: 25; cursor: zoom-out; touch-action: none; display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 0 var(--gutter) 34px; }
.study p { font-style: italic; color: var(--linen-dim); align-self: center; margin-top: auto; padding-bottom: 6px; }
.study .tool { cursor: pointer; }
.is-studying .rail, .is-studying .hint { opacity: 0; pointer-events: none; }

/* ——— the works: hung on their three walls, in true relative scale ——— */
.index { position: relative; background: var(--umbra); }
.index::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30vh; background: linear-gradient(rgba(11, 8, 6, 0), var(--umbra)); pointer-events: none; }
.index__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(80px, 14vh, 170px) 0 clamp(40px, 7vh, 80px); }
.index h2, .acquire h2, .contact h2 { font-size: clamp(3rem, 7.2vw, 7.5rem); letter-spacing: -.025em; }
.index__lede { margin-top: 18px; font-size: clamp(1.1rem, 1.4vw, 1.35rem); color: var(--linen-soft); }
.filter { display: flex; gap: 10px; padding-bottom: 8px; }
.filter .tool[aria-pressed="true"] { background: var(--gilt); color: var(--umbra); border-color: var(--gilt); font-weight: 600; }

.wallband { --cm: min(3.7px, .255vw); position: relative; padding: clamp(64px, 10vh, 120px) 0 clamp(72px, 11vh, 132px); background: radial-gradient(75% 62% at 50% 40%, rgba(255, 226, 184, .1), rgba(255, 226, 184, 0) 72%), var(--wall); box-shadow: inset 0 1px 0 rgba(226, 199, 132, .22), inset 0 -40px 60px -30px rgba(0, 0, 0, .55); }
.wallband__head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; }
.wallband__head span { font: italic 400 1.5rem/1 var(--display); color: var(--gilt-hi); }
.wallband__head h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.015em; }
.wallband__head p { grid-column: 2; margin-top: 8px; color: var(--linen-soft); max-width: 34em; }
.hang { list-style: none; margin: clamp(40px, 7vh, 76px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 56px clamp(28px, 3.6vw, 56px); }
.piece { width: max(calc(var(--w) * var(--cm)), 13.5rem); transition: opacity .5s ease; }
.piece__img { display: flex; align-items: center; justify-content: center; width: 100%; height: calc(var(--maxh) * var(--cm)); padding: 0; border: 0; background: none; cursor: zoom-in; }
.piece__img img { width: calc(var(--w) * var(--cm)); height: calc(var(--h) * var(--cm)); max-width: none; object-fit: cover; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 30px 46px -14px rgba(0, 0, 0, .75), 0 4px 10px rgba(0, 0, 0, .45); transition: transform .7s var(--ease), box-shadow .7s var(--ease), filter .5s; filter: brightness(.94); }
.piece__img:hover img, .piece__img:focus-visible img { transform: translateY(-6px); filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 44px 60px -16px rgba(0, 0, 0, .8), 0 6px 14px rgba(0, 0, 0, .5); }
.piece__label { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(233, 223, 202, .22); }
.piece__no { font: italic 400 .92rem/1 var(--display); color: var(--gilt-hi); }
.piece h4 { font-size: 1.7rem; margin-top: 8px; letter-spacing: -.01em; }
.piece__meta { margin-top: 8px; color: var(--linen-soft); font-size: .95rem; line-height: 1.5; }
.piece .price { font-size: 1.25rem; margin-top: 14px; }
.piece__actions { display: grid; gap: 4px; justify-items: start; margin-top: 14px; }
#indexList[data-show="available"] .piece:not([data-status="available"]) { opacity: .16; pointer-events: none; }

/* ——— acquiring ——— */
.acquire { background: var(--umbra); padding: clamp(96px, 16vh, 190px) 0; }
.acquire__grid { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.acquire__img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; filter: saturate(.9); position: sticky; top: calc(var(--bar) + 32px); }
.acquire__lede { margin-top: 22px; font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: var(--linen-soft); max-width: 28em; }
.steps { list-style: none; margin: clamp(40px, 7vh, 72px) 0 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.steps li { counter-increment: s; padding-top: 22px; border-top: 1px solid rgba(184, 148, 74, .45); }
.steps li::before { content: counter(s, upper-roman); display: block; font: italic 400 2.6rem/1 var(--display); color: var(--gilt-hi); margin-bottom: 18px; }
.steps h3 { font-size: 1.7rem; margin-bottom: 10px; }
.steps p { color: var(--linen-soft); }

/* ——— correspondence ——— */
.contact { padding: clamp(96px, 17vh, 200px) 0; background: radial-gradient(60% 70% at 50% 100%, rgba(184, 148, 74, .1), rgba(184, 148, 74, 0) 70%), var(--umbra); border-top: 1px solid rgba(233, 223, 202, .08); text-align: center; }
.contact__in { display: grid; justify-items: center; }
.contact p { margin-top: 24px; max-width: 30em; font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--linen-soft); }
.contact__mail { display: inline-block; margin-top: clamp(32px, 6vh, 64px); font: italic 400 clamp(2rem, 5.6vw, 5.6rem)/1.1 var(--display); letter-spacing: -.015em; color: var(--gilt-hi); text-decoration: none; background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size .8s var(--ease); overflow-wrap: anywhere; padding-bottom: .08em; }
.contact__mail:hover, .contact__mail:focus-visible { background-size: 100% 1px; }

/* ——— foot ——— */
.foot { background: #070504; border-top: 1px solid rgba(184, 148, 74, .25); padding: clamp(64px, 10vh, 120px) 0 40px; color: var(--linen-dim); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.foot__name { font: italic 400 clamp(3rem, 8.4vw, 8.5rem)/.92 var(--display); letter-spacing: -.03em; color: var(--linen); margin-left: -.04em; padding-bottom: .08em; }
.foot__by { font: italic 400 clamp(1.1rem, 1.8vw, 1.6rem)/1 var(--display); color: var(--gilt-hi); margin-top: 8px; }
.foot__nav { display: flex; gap: 30px; padding-bottom: 14px; color: var(--linen); }
.foot__small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; font-size: .88rem; padding-top: 22px; border-top: 1px solid rgba(233, 223, 202, .1); }

/* ——— sections arrive once ——— */
.has-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s ease, transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }
.steps li:nth-child(2) { --i: 1; } .steps li:nth-child(3) { --i: 2; }
.has-reveal .piece.reveal.is-in { transition: opacity .5s ease; transition-delay: 0s; }

/* ——— selection drawer ——— */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(5, 4, 3, .78); }
.cart { width: min(460px, 100vw); height: 100vh; height: 100dvh; max-height: none; margin: 0 0 0 auto; background: var(--linen); color: #2a2018; overflow-y: auto; }
.cart[open] { animation: drawer .55s var(--ease); }
.cart[open]::backdrop { animation: veil .45s ease; }
@keyframes drawer { from { transform: translateX(48px); opacity: 0; } }
@keyframes veil { from { opacity: 0; } }
.cart :focus-visible { outline-color: #6b5120; }
.cart__head { position: relative; padding: 28px 26px 14px; }
.cart__head h2 { font-size: 2.1rem; }
.x { position: absolute; top: 28px; right: 22px; background: none; border: 1px solid #8c6c2c; padding: 6px 14px; font-size: .9rem; border-radius: 2px; }
#cartBody { padding: 0 26px 32px; }
.cart__empty { font-style: italic; margin: 12px 0 20px; }
.cart ul { list-style: none; margin: 0; padding: 0; }
.cart li { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(42, 32, 24, .2); }
.cart li img { width: 62px; height: 80px; object-fit: cover; }
.cart li b { display: block; font: italic 500 1.15rem/1.2 var(--display); }
.cart li small { color: #5b4d3c; }
.cart .linkbtn { color: #5b4d3c; font-size: .88rem; text-decoration-color: #8c6c2c; }
.cart .linkbtn:hover { color: #2a2018; }
.cart__sum { display: flex; justify-content: space-between; padding: 16px 0; border-top: 2px solid #2a2018; font: 500 1.3rem/1 var(--text); }
.cart form { display: grid; gap: 14px; margin-top: 8px; }
.cart label { display: grid; gap: 5px; font-size: .92rem; font-weight: 500; }
.cart input, .cart textarea { font: inherit; padding: 10px 12px; border: 1px solid #8a7a62; background: #f6efdf; color: #2a2018; border-radius: 2px; }
.cart .btn { text-align: center; }
.cart__note { font-size: .86rem; color: #5b4d3c; line-height: 1.5; }
.cart__done { padding: 14px 16px; margin-bottom: 8px; background: #dccfb3; border-left: 3px solid #6b5120; }

/* ——— curtain: long jumps and the film begin and end behind it ——— */
.curtain { position: fixed; inset: 0; z-index: 45; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.curtain.is-on { opacity: 1; pointer-events: auto; }

/* ——— the film: letterboxed, timed, with subtitles instead of an interface ——— */
.is-cinema body { overflow: hidden; }
.is-cinema main, .is-cinema .bar, .is-cinema .foot { visibility: hidden; }
.is-cinema .hero__layer { visibility: hidden !important; }
.is-cinema .vignette { background: radial-gradient(110% 85% at 50% 50%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .7) 100%); }
.cine { position: fixed; inset: 0; z-index: 40; --lb: 11vh; }
.cine__bar { position: absolute; left: 0; right: 0; height: var(--lb); background: #000; animation: lb .9s var(--ease) both; }
.cine__bar--top { top: 0; transform-origin: top; }
.cine__bar--bottom { bottom: 0; transform-origin: bottom; }
@keyframes lb { from { transform: scaleY(0); } }
.cine__card { position: absolute; inset: var(--lb) 0; display: grid; align-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.cine__card span { font: italic 400 1.4rem/1 var(--display); color: var(--gilt-hi); }
.cine__card h2 { font-size: clamp(3rem, 10vw, 9.5rem); letter-spacing: -.02em; margin-top: 12px; }
.cine__card p { margin-top: 20px; max-width: 30em; font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--linen-soft); }
.cine__item--open h2 { text-shadow: 0 2px 40px rgba(0, 0, 0, .9); }
.cine__sub { position: absolute; left: 50%; bottom: calc(var(--lb) + 3.2vh); transform: translateX(-50%); width: min(46rem, 86vw); height: 0; text-align: center; text-shadow: 0 1px 1px rgba(0, 0, 0, .95), 0 2px 10px rgba(0, 0, 0, .85), 0 0 34px rgba(0, 0, 0, .8); }
.cine__item { opacity: 0; transform: translateY(12px); transition: opacity 1.1s ease, transform 1.6s var(--ease); will-change: opacity, transform; }
.cine__sub .cine__item { position: absolute; left: 0; right: 0; bottom: 0; }
.cine__sub .cine__item::before { content: ""; position: absolute; z-index: -1; inset: -34px -90px -30px; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, 0)); pointer-events: none; }
.cine__card .cine__item { grid-area: 1 / 1; display: grid; justify-items: center; }
.cine__item.is-on { opacity: 1; transform: none; transition-delay: .6s; }
.cine__item.is-out { transform: translateY(-8px); transition: opacity .9s ease, transform 1.2s ease; }
.cine__item--line { font: italic 400 clamp(1.15rem, 1.9vw, 1.7rem)/1.4 var(--text); color: #f1e8d6; text-wrap: balance; }
.cine__item--title b { display: block; font: italic 400 clamp(2.2rem, 5vw, 4.6rem)/1.05 var(--display); letter-spacing: -.015em; }
.cine__item--title i { display: block; margin-top: 10px; font: 400 .95rem/1.4 var(--text); color: var(--linen-soft); letter-spacing: .02em; }
.cine__controls { position: absolute; right: clamp(16px, 2.2vw, 44px); bottom: 0; height: var(--lb); display: flex; align-items: center; gap: 26px; opacity: .5; transition: opacity .3s; }
.cine__controls:hover, .cine__controls:focus-within { opacity: 1; }
.cine__controls .linkbtn { text-decoration: none; font-size: .9rem; color: var(--linen); }
.cine__controls .linkbtn:hover { color: var(--gilt-hi); }
.cine__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(233, 223, 202, .08); }
.cine__progress i { display: block; height: 100%; background: var(--gilt); transform-origin: left; transform: scaleX(0); }
.cine.is-ended #cinePause, .cine.is-ended .cine__progress { opacity: 0; pointer-events: none; }
.cine__end { position: absolute; inset: var(--lb) 0; display: grid; align-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.cine__end > * { opacity: 0; transform: translateY(14px); transition: opacity 1.4s ease, transform 1.8s var(--ease); }
.cine__end.is-on > * { opacity: 1; transform: none; }
.cine__end.is-on > :nth-child(1) { transition-delay: .5s; } .cine__end.is-on > :nth-child(2) { transition-delay: .9s; } .cine__end.is-on > :nth-child(3) { transition-delay: 1.7s; }
.cine__end.is-on > :nth-child(4) { transition-delay: 2.1s; } .cine__end.is-on > :nth-child(5) { transition-delay: 2.8s; } .cine__end.is-on > :nth-child(6) { transition-delay: 3.2s; }
.cine__endname { font: italic 400 clamp(2.6rem, 8vw, 7.5rem)/1 var(--display); letter-spacing: -.025em; }
.cine__endby { font: italic 400 clamp(1.1rem, 1.8vw, 1.6rem)/1 var(--display); color: var(--gilt-hi); margin-top: 14px; }
.cine__endline { margin-top: clamp(28px, 6vh, 64px); color: var(--linen-dim); font-style: italic; }
.cine__endnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(22px, 4.5vw, 64px); margin-top: 22px; }
.cine__endnav button { background: linear-gradient(var(--gilt-hi), var(--gilt-hi)) 50% 100% / 0 1px no-repeat; border: 0; padding: 6px 2px 10px; font: italic 400 clamp(1.6rem, 3.4vw, 3rem)/1.1 var(--display); color: var(--linen); transition: background-size .6s var(--ease), color .3s; }
.cine__endnav button:hover, .cine__endnav button:focus-visible { background-size: 100% 1px; color: var(--gilt-hi); }
.cine__again { margin-top: clamp(26px, 5vh, 56px); background: none; border: 0; color: var(--linen-dim); font: 400 .95rem/1 var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(184, 148, 74, .6); }
.cine__again:hover { color: var(--linen); }

/* ——— no film: reduced motion or no WebGL. The page opens on a still and the works carry it. ——— */
.static #stage, .static .vignette, .static .film, .static #play, .static .hero__work, .static .piece__actions [data-view] { display: none; }
.static .hero { position: relative; }
.static .hero__layer { position: absolute; background: var(--umbra); pointer-events: auto; }
.static .hero__layer::after { z-index: 0; background: radial-gradient(70% 62% at 50% 50%, rgba(5, 4, 3, .7), rgba(5, 4, 3, .35)); }
.static .hero__text { z-index: 1; }
.static .hero__img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: brightness(.7); }
.static .hero h1, .static .byline, .static .lede, .static .hero__actions { animation: none; }
.static .hero__cue { display: none; }
.static .index::before { display: none; }
.static .piece__img { cursor: default; }

/* ——— narrow screens and portrait ——— */
@media (max-width: 820px), (max-aspect-ratio: 23/20) {
  .bar { gap: 12px; }
  .bar__nav { display: none; }
  .tool { padding: 7px 11px; font-size: .84rem; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 7rem); }
  .hero__actions .btn { padding: 14px 18px; font-size: .95rem; }
  .caption { left: 0; right: 0; bottom: 0; width: auto; padding: 60px var(--gutter) 22px; background: linear-gradient(0deg, rgba(5, 4, 3, .94) 62%, rgba(5, 4, 3, 0)); }
  .caption h2 { font-size: 2.1rem; }
  .caption__note { display: none; }
  .caption__meta { margin-top: 8px; }
  .caption .price { margin-top: 10px; font-size: 1.3rem; }
  .caption__actions { margin-top: 14px; }
  .rail { display: none; }
  .hint { white-space: normal; text-align: center; width: 80%; }
  .study { flex-direction: column; align-items: center; gap: 8px; }
  .wallband { --cm: .58vw; }
  .hang { gap: 44px 22px; }
  .piece { width: max(calc(var(--w) * var(--cm)), 9.5rem); }
  .piece h4 { font-size: 1.4rem; }
  .acquire__grid { grid-template-columns: 1fr; }
  .acquire__img { position: static; max-width: 200px; }
  .steps { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; align-items: start; }
  .foot__nav { flex-wrap: wrap; gap: 14px 24px; }
  .cine { --lb: 8vh; }
  .cine__endnav { flex-direction: column; gap: 4px; }
  .cine__controls { gap: 16px; }
}
@media (min-width: 821px) and (max-width: 1100px) { .steps { grid-template-columns: 1fr; } }

@media (max-width: 520px) { #playBar { display: none; } }

/* ——— film look: grain, a warm vignette and the odd scratch, over the opening and the film ——— */
.filmlook { position: fixed; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; } /* above the title too: on film, the scratches are on everything */
.filmlook::before { content: ""; position: absolute; inset: -240px; background: var(--grain); opacity: 0; mix-blend-mode: overlay; animation: grain .8s steps(1) infinite; transition: opacity 1.2s ease; }
.is-hero .filmlook::before, .is-cinema .filmlook::before { opacity: .07; }
.filmlook::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 78% 74% at 50% 50%, rgba(40, 18, 0, 0) 48%, rgba(18, 7, 0, .62) 100%), rgba(150, 96, 36, .1); mix-blend-mode: multiply; opacity: 0; transition: opacity 1.2s ease; }
.is-hero .filmlook::after, .is-cinema .filmlook::after { opacity: 1; }
#filmDust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.is-hero #filmDust, .is-cinema #filmDust { opacity: 1; }
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-70px, 40px); } 25% { transform: translate(55px, -90px); } 37% { transform: translate(-120px, -30px); }
  50% { transform: translate(90px, 110px); } 62% { transform: translate(-30px, 150px); } 75% { transform: translate(140px, -60px); } 87% { transform: translate(-160px, 90px); }
}
.static .filmlook { display: none; }
/* ——— preview marker, shown while the catalogue is flagged as a demo ——— */
.preview-tag { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 12px; z-index: 32; font: italic 400 .8rem/1.3 var(--text); color: var(--linen-dim); background: rgba(11, 8, 6, .72); padding: 5px 10px; border: 1px solid rgba(184, 148, 74, .3); border-radius: 2px; pointer-events: none; }
.is-cinema .preview-tag { display: none; }

/* ——— the small line above the large name ——— */
.lead { font: italic 400 clamp(1.3rem, 2.6vw, 2.8rem)/1 var(--display); color: var(--gilt-hi); margin-bottom: .1em; text-shadow: 0 1px 24px rgba(0, 0, 0, .7); animation: text-in 1.2s ease .5s both; }
.static .lead { animation: none; }
.foot__lead { font: italic 400 clamp(1.1rem, 1.8vw, 1.6rem)/1 var(--display); color: var(--gilt-hi); margin-bottom: 6px; }
.cine__end .cine__endby { margin: 0 0 10px; }

/* ——— display typefaces to choose between (set by data-font on the root) ——— */
:root[data-font="cormorant"], :root[data-font^="s-"] { --display: "Cormorant Garamond", "Garamond", "Times New Roman", serif; --display-style: normal; --display-weight: 300; --display-track: -.012em; }
:root[data-font="cormorant-italic"] { --display: "Cormorant Garamond", "Garamond", "Times New Roman", serif; --display-style: italic; --display-weight: 300; --display-track: -.012em; }
:root[data-font="playfair"] { --display: "Playfair Display", "Didot", Georgia, serif; --display-style: normal; --display-weight: 400; --display-track: -.02em; }
:root h1, :root h2 { letter-spacing: var(--display-track); }
.foot .foot__name, .cine .cine__endname, .cine .cine__item--title b { font-style: var(--display-style); font-weight: var(--display-weight); letter-spacing: var(--display-track); }
:root[data-font^="cormorant"] .hero h1 { font-size: clamp(3.8rem, 13.6vw, 19rem); line-height: .88; }
:root[data-font^="cormorant"] .price, :root[data-font^="cormorant"] .steps li::before { font-weight: 500; }

/* ——— handwritten variants: a script face for the artist's name only; everything else stays in Cormorant ——— */
:root[data-font="s-pinyon"] { --mark: "Pinyon Script", "Snell Roundhand", cursive; --mark-size: 1.12; }
:root[data-font="s-allura"] { --mark: "Allura", "Snell Roundhand", cursive; --mark-size: 1.12; }
:root[data-font="s-italianno"] { --mark: "Italianno", "Snell Roundhand", cursive; --mark-size: 1.34; }
:root[data-font="s-imperial"] { --mark: "Imperial Script", "Snell Roundhand", cursive; --mark-size: 1.2; }
:root[data-font="s-luxurious"] { --mark: "Luxurious Script", "Snell Roundhand", cursive; --mark-size: 1.5; }
:root[data-font="s-monsieur"] { --mark: "Monsieur La Doulaise", "Snell Roundhand", cursive; --mark-size: 1.25; }
:root[data-font="s-windsong"] { --mark: "WindSong", "Snell Roundhand", cursive; --mark-size: .84; }
:root[data-font="s-corinthia"] { --mark: "Corinthia", "Snell Roundhand", cursive; --mark-size: 1.3; }
:root[data-font^="s-"] .hero h1, :root[data-font^="s-"] .foot .foot__name, :root[data-font^="s-"] .cine .cine__endname, :root[data-font^="s-"] .cine__item--open h2 { font-family: var(--mark); font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 1.05; padding: .12em .12em .18em; }
:root[data-font^="s-"] .hero h1 { font-size: calc(clamp(3.6rem, 12.6vw, 18rem) * var(--mark-size)); margin-left: 0; }
:root[data-font^="s-"] .foot .foot__name { font-size: calc(clamp(3rem, 8.4vw, 8.5rem) * var(--mark-size)); margin-left: 0; }
:root[data-font^="s-"] .cine .cine__endname { font-size: calc(clamp(2.6rem, 8vw, 7.5rem) * var(--mark-size)); }
:root[data-font^="s-"] .byline { margin-top: -.5em; }
