/* ==========================================================================
   HOMAVERSE — home hero slider (design E)
   The classic hero is slide "brand"; the studio adds auctions, events, drops, works, collections and
   promotions in Admin → Home hero. Slides cross-fade in one grid cell, so the hero never jumps in height
   ========================================================================== */

/* ---------- frame (also used when the hero has a single slide) ---------- */
.hero{align-items:stretch}
.hs-track{position:relative;display:grid;width:100%;min-width:0;touch-action:pan-y}
.hs-slide{grid-area:1/1;position:relative;display:flex;align-items:center;min-width:0}
.hs-brand>.hero-inner{position:relative}
.hs-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- slider states ---------- */
.hs .hs-slide{opacity:0;visibility:hidden;transition:opacity .8s var(--ease),visibility 0s linear .8s}
.hs .hs-slide.on{opacity:1;visibility:visible;transition:opacity .8s var(--ease),visibility 0s}
/* the 3D paintings leave the clipped hero while another slide shows, so the WebGL scene stops drawing */
.hero-art.is-away{transform:translateY(-130%);transition:none}
.hs .hs-slide>.wrap{padding-bottom:clamp(88px,9vw,112px)}
.hs .hero-inner{padding-top:clamp(64px,8vw,96px)}

/* ---------- promo slide ---------- */
.hs-promo{
  --hs-c:#2a2119;--hs-ink:#F5EEE3;--hs-soft:#D9CBB4;--hs-dim:#B9AB94;--hs-gold:#E6C886;--hs-line:rgba(230,200,134,.24);
  --hs-veil:linear-gradient(90deg,rgba(16,13,10,.94) 0%,rgba(16,13,10,.72) 48%,rgba(16,13,10,.38) 100%);
  color:var(--hs-ink);background:var(--ink)}
[dir=rtl] .hs-promo{--hs-veil:linear-gradient(270deg,rgba(16,13,10,.94) 0%,rgba(16,13,10,.72) 48%,rgba(16,13,10,.38) 100%)}
.hs-bg{position:absolute;inset:0;overflow:hidden;background:radial-gradient(90% 120% at 80% 30%,color-mix(in srgb,var(--hs-c) 70%,#4A1724) 0%,var(--ink) 70%)}
.hs-bg img{position:absolute;inset:-8%;width:116%;height:116%;object-fit:cover;filter:blur(var(--hs-blur,34px)) saturate(1.25) brightness(.62);transform:scale(1.04);opacity:0;transition:opacity 1.2s var(--ease)}
.hs-bg img[src]{opacity:1}
.hs-bg::after{content:"";position:absolute;inset:0;background:var(--hs-veil)}
.hs-slide.on .hs-bg img{animation:hsDrift 18s ease-in-out infinite alternate}
@keyframes hsDrift{to{transform:scale(1.12) translate3d(-2%,1%,0)}}

.hs-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:clamp(24px,5vw,72px);padding-top:clamp(56px,7vw,88px)}
.hs-txt{display:grid;justify-items:start;gap:14px;min-width:0;max-width:600px}
.hs-txt>*{margin:0}

.hs-preview{padding:6px 12px;border-radius:8px;background:rgba(241,212,140,.16);border:1px dashed rgba(241,212,140,.6);color:var(--hs-gold);font-size:12.5px;font-weight:700}
.hs-chip{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:0 13px;border-radius:999px;border:1px solid var(--hs-line);background:rgba(255,255,255,.06);
  color:var(--hs-gold);font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.lang-fa .hs-chip,.lang-ar .hs-chip{letter-spacing:0;font-size:13px}
.hs-chip.is-live{color:#FF9DAE;border-color:rgba(255,141,163,.4);background:rgba(180,35,60,.16)}
.hs-chip i{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 0 currentColor;animation:livePulse 1.6s infinite}

.hs-title{font-family:var(--display);font-weight:700;font-size:clamp(38px,5.4vw,72px);line-height:1.16;letter-spacing:-.01em;color:var(--hs-ink);padding-bottom:.02em;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-wrap:balance;max-width:100%}
.lang-fa .hs-title,.lang-ar .hs-title{font-family:var(--font);font-weight:900;font-size:clamp(30px,4vw,54px);line-height:1.3;letter-spacing:0}
.hs-text{max-width:520px;color:var(--hs-soft);font-size:clamp(15px,1.4vw,17.5px);line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* facts: the same label-on-top / gold figure look as every number on the site */
.hs-facts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,max-content);gap:0;margin:6px 0 2px!important;padding:0;border-block:1px solid var(--hs-line);max-width:100%}
.hs-facts>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:13px clamp(14px,2vw,26px)}
.hs-facts>div:first-child{padding-inline-start:0}
.hs-facts>div+div{border-inline-start:1px solid var(--hs-line)}
.hs-facts dt{margin:0;color:var(--hs-dim);font-size:12.5px;font-weight:400;line-height:1.35}
.hs-facts dd{margin:0;color:var(--hs-gold);font-family:var(--font);font-weight:900;font-size:clamp(17px,1.6vw,21px);line-height:1.2;
  font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1,"lnum" 1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-facts .is-warn dd{color:#FFB37A}
.hs-facts time{font:inherit;color:inherit}

.hs-code{display:inline-flex;align-items:center;gap:10px;font-size:13px;color:var(--hs-dim)}
.hs-code b{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border:1.5px dashed var(--hs-gold);border-radius:9px;color:var(--hs-gold);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;letter-spacing:.12em;cursor:copy;transition:background .2s}
.hs-code b:hover,.hs-code b:focus-visible{background:rgba(230,200,134,.12)}

.hs-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px!important}
.hs-cta .btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--ease)}
[dir=rtl] .hs-cta .btn svg{transform:scaleX(-1)}
.hs-cta .btn-gold:hover svg{transform:translateX(3px)}
[dir=rtl] .hs-cta .btn-gold:hover svg{transform:scaleX(-1) translateX(3px)}
.hs-promo .btn-ghost{color:var(--hs-ink)}

/* the framed picture (or a calendar tile for an event without a photo) */
.hs-pic{position:relative;justify-self:center;display:block;text-decoration:none;width:min(400px,86%);aspect-ratio:4/5;border-radius:4px;overflow:hidden;color:inherit;
  background:color-mix(in srgb,var(--hs-c) 60%,#16120E);
  box-shadow:0 0 0 7px #0D0B09,0 0 0 8px rgba(201,160,90,.6),0 50px 80px -34px rgba(0,0,0,.95);transform:rotate(2deg);transition:transform .6s var(--ease)}
[dir=rtl] .hs-pic{transform:rotate(-2deg)}
.hs-pic picture{display:contents}
.hs-pic img{width:100%;height:100%;object-fit:cover;display:block}
a.hs-pic:hover{transform:rotate(0) scale(1.015)}
.hs-pic::after{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(255,255,255,.14),transparent 36%);pointer-events:none}
.hs-pic.is-date{display:grid;place-items:center;background:radial-gradient(120% 90% at 30% 10%,#5A1E2C,#1B1410 70%)}
.hs-date{display:grid;justify-items:center;gap:2px;text-align:center;color:var(--hs-gold)}
.hs-date small{font-size:15px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--hs-soft)}
.hs-date b{font-family:var(--display);font-size:clamp(110px,13vw,170px);line-height:.9;font-weight:700;font-variant-numeric:lining-nums}
.lang-fa .hs-date b,.lang-ar .hs-date b{font-family:var(--font);font-weight:900;font-size:clamp(90px,10vw,140px);line-height:1.1}
.hs-date span{font-size:24px;font-weight:800;letter-spacing:.2em;text-transform:uppercase}
.lang-fa .hs-date :is(small,span),.lang-ar .hs-date :is(small,span){letter-spacing:0}

/* entrance of the slide that comes in */
@keyframes hsRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes hsPic{from{opacity:0;transform:rotate(7deg) scale(.94) translateY(16px)}to{opacity:1}}
@keyframes hsPicR{from{opacity:0;transform:rotate(-7deg) scale(.94) translateY(16px)}to{opacity:1}}
.hs .hs-promo.on .hs-txt>*{animation:hsRise .75s var(--ease) both}
.hs .hs-promo.on .hs-txt>:nth-child(2){animation-delay:.06s}
.hs .hs-promo.on .hs-txt>:nth-child(3){animation-delay:.12s}
.hs .hs-promo.on .hs-txt>:nth-child(4){animation-delay:.18s}
.hs .hs-promo.on .hs-txt>:nth-child(n+5){animation-delay:.24s}
.hs .hs-promo.on .hs-pic{animation:hsPic 1s var(--ease) both .1s}
[dir=rtl] .hs .hs-promo.on .hs-pic{animation-name:hsPicR}
.hs .hs-brand.on.is-replay .hero-inner>*{animation:hsRise .75s var(--ease) both}

/* ---------- controls: play/pause · story-like progress with labels · arrows ---------- */
.hs-ui{position:absolute;z-index:5;inset-inline:0;bottom:clamp(16px,2.4vw,28px);display:flex;align-items:center;gap:14px}
.hs-segs{flex:1;display:flex;gap:8px;min-width:0}
.hs-segs button{flex:1 1 0;display:grid;gap:8px;min-width:0;min-height:44px;align-content:end;padding:6px 0;border:0;background:none;cursor:pointer;text-align:start;
  color:#B9AB94;font:inherit;font-size:12.5px;font-weight:700;line-height:1.3;transition:color .25s}
.hs-segs button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-segs button i{position:relative;display:block;height:3px;border-radius:3px;background:rgba(255,255,255,.18);overflow:hidden}
.hs-segs button i::after{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:0;border-radius:inherit;background:linear-gradient(90deg,#F1D48C,#C9A05A)}
.hs-segs button.done i::after{width:100%}
.hs-segs button.run i::after{animation:hsFill var(--hs-dur,7s) linear forwards}
.hs-segs button.run,.hs-segs button:hover{color:#F5EEE3}
.hs-segs button:focus-visible{outline:2px solid var(--gold-l);outline-offset:3px;border-radius:4px}
.hs.is-paused .hs-segs button.run i::after{animation-play-state:paused}
.hs.is-still .hs-segs button.run i::after{animation:none;width:100%}
@keyframes hsFill{to{width:100%}}

.hs-play,.hs-arrows button{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid rgba(230,200,134,.32);
  background:rgba(22,18,14,.45);color:#F5EEE3;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:background .2s,border-color .2s,transform .2s var(--ease)}
.hs-play:hover,.hs-arrows button:hover{background:rgba(230,200,134,.18);border-color:rgba(230,200,134,.7)}
.hs-play:active,.hs-arrows button:active{transform:scale(.94)}
.hs-play:focus-visible,.hs-arrows button:focus-visible{outline:2px solid var(--gold-l);outline-offset:2px}
.hs-play svg,.hs-arrows svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hs-play .i-play{display:none;fill:currentColor;stroke-width:1.4}
.hs.is-still .hs-play .i-pause{display:none}
.hs.is-still .hs-play .i-play{display:block}
.hs-arrows{display:flex;gap:8px}
[dir=rtl] .hs-arrows svg{transform:scaleX(-1)}

/* phones only: small arrows flanking the progress lines, and a one-time "swipe" hint above them */
.hs-mstep{display:none;flex:none;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(230,200,134,.12);color:#F1D48C;cursor:pointer;
  transition:background .2s,transform .2s var(--ease)}
.hs-mstep svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hs-mstep:active{transform:scale(.9);background:rgba(230,200,134,.26)}
.hs-mstep:focus-visible{outline:2px solid var(--gold-l);outline-offset:2px}
.hs-mstep[data-hs-step="-1"] svg{animation:hsNudgeL 2.4s var(--ease) 1.4s 3}
.hs-mstep[data-hs-step="1"] svg{animation:hsNudgeR 2.4s var(--ease) 1.4s 3}
[dir=rtl] .hs-mstep svg{scale:-1 1}
@keyframes hsNudgeL{0%,60%,100%{translate:0}30%{translate:-4px}}
@keyframes hsNudgeR{0%,60%,100%{translate:0}30%{translate:4px}}
.hs-hint{display:none;position:absolute;inset-inline:0;bottom:calc(100% + 10px);margin:0 auto;width:max-content;max-width:calc(100% - 32px);align-items:center;gap:8px;
  padding:7px 14px 7px 10px;border-radius:999px;background:rgba(16,13,10,.72);border:1px solid rgba(230,200,134,.3);color:#F5EEE3;font-size:12.5px;font-weight:700;line-height:1;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 12px 26px -14px rgba(0,0,0,.7);pointer-events:none;
  opacity:0;animation:hsHint 5.2s var(--ease) 1.2s both}
.hs-hint-ic{display:grid;place-items:center;width:22px;height:22px;color:#F1D48C;animation:hsHand 1.3s var(--ease) 1.4s 3}
.hs-hint-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hs-hint-arr{display:flex;gap:2px}
.hs-hint-arr i{width:6px;height:6px;border-top:2px solid #F1D48C;border-inline-end:2px solid #F1D48C;transform:rotate(-135deg);opacity:.4;animation:hsArr 1.3s linear 1.4s 3}
.hs-hint-arr i:nth-child(2){animation-delay:1.6s}
[dir=rtl] .hs-hint-arr i{transform:rotate(135deg)}
[dir=rtl] .hs-hint-ic{scale:-1 1}
@keyframes hsHint{0%{opacity:0;translate:0 6px}10%,82%{opacity:1;translate:0}100%{opacity:0;translate:0 -4px;visibility:hidden}}
@keyframes hsHand{0%,100%{translate:0}45%{translate:-7px}}
@keyframes hsArr{0%,100%{opacity:.35}50%{opacity:1}}
[dir=rtl] .hs-hint-ic{animation-name:hsHandR}
@keyframes hsHandR{0%,100%{translate:0}45%{translate:7px}}
.hs.is-swiped .hs-hint{display:none!important}
[data-theme=light] .hs-mstep{background:rgba(138,100,36,.1);color:#7A5518}
[data-theme=light] .hs-hint{background:rgba(255,253,248,.9);color:#1E1813;border-color:rgba(138,100,36,.3)}
[data-theme=light] .hs-hint-ic{color:#8A6424}
[data-theme=light] .hs-hint-arr i{border-color:#8A6424}

/* ---------- per-slide look from Admin → Home hero: background blur (--hs-blur) and the framed picture on or off ---------- */
.hs-sharp .hs-bg img{inset:0;width:100%;height:100%}
.hs-noframe .hs-bg img{filter:blur(var(--hs-blur,34px)) saturate(1.15) brightness(.74)}
.hs-noframe .hs-grid{grid-template-columns:minmax(0,680px)}
.hs-noframe .hs-txt{max-width:none}
[data-theme=light] .hs-noframe .hs-bg img{filter:blur(var(--hs-blur,34px)) saturate(1.05) brightness(1.02)}
.hs-noframe :is(.hs-title,.hs-text){text-shadow:0 2px 18px rgba(0,0,0,.35)}
[data-theme=light] .hs-noframe :is(.hs-title,.hs-text){text-shadow:0 1px 14px rgba(251,247,240,.7)}
/* phones: the text runs over the whole picture, so the veil darkens from the top down instead of from the side */
@media (max-width:820px){
  .hs-noframe,[dir=rtl] .hs-noframe{--hs-veil:linear-gradient(180deg,rgba(16,13,10,.9) 0%,rgba(16,13,10,.78) 55%,rgba(16,13,10,.5) 100%)}
  [data-theme=light] .hs-noframe,[data-theme=light] [dir=rtl] .hs-noframe,[data-theme=light][dir=rtl] .hs-noframe{--hs-veil:linear-gradient(180deg,rgba(251,247,240,.93) 0%,rgba(251,247,240,.82) 55%,rgba(251,247,240,.55) 100%)}
}

/* ---------- light theme: a cream veil over the blurred picture, ink text ---------- */
[data-theme=light] .hs-promo{
  --hs-ink:#1E1813;--hs-soft:#4A3F35;--hs-dim:#6F6253;--hs-gold:#7A5518;--hs-line:rgba(138,100,36,.26);
  --hs-veil:linear-gradient(90deg,rgba(251,247,240,.95) 0%,rgba(251,247,240,.82) 50%,rgba(251,247,240,.5) 100%);background:var(--paper)}
[data-theme=light][dir=rtl] .hs-promo,[data-theme=light] [dir=rtl] .hs-promo{--hs-veil:linear-gradient(270deg,rgba(251,247,240,.95) 0%,rgba(251,247,240,.82) 50%,rgba(251,247,240,.5) 100%)}
[data-theme=light] .hs-bg{background:radial-gradient(90% 120% at 80% 30%,color-mix(in srgb,var(--hs-c) 30%,#F3D9D6) 0%,#FBF7F0 70%)}
[data-theme=light] .hs-bg img{filter:blur(var(--hs-blur,34px)) saturate(1.1) brightness(1.08)}
[data-theme=light] .hs-chip{background:rgba(255,255,255,.6)}
[data-theme=light] .hs-chip.is-live{color:#B4233C;background:rgba(180,35,60,.08);border-color:rgba(180,35,60,.3)}
[data-theme=light] .hs-facts .is-warn dd{color:#A2490F}
[data-theme=light] .hs-preview{background:rgba(138,100,36,.08);border-color:rgba(138,100,36,.45)}
[data-theme=light] .hs-pic{box-shadow:0 0 0 7px #FFFDF8,0 0 0 8px rgba(138,100,36,.45),0 50px 80px -36px rgba(60,40,20,.55)}
[data-theme=light] .hs-pic.is-date{background:radial-gradient(120% 90% at 30% 10%,#F7E3D9,#EADBC6 70%)}
[data-theme=light] .hs-segs button{color:#6F6253}
[data-theme=light] .hs-segs button.run,[data-theme=light] .hs-segs button:hover{color:#1E1813}
[data-theme=light] .hs-segs button i{background:rgba(30,24,19,.14)}
[data-theme=light] .hs-segs button i::after{background:linear-gradient(90deg,#B88A45,#8A6424)}
[data-theme=light] :is(.hs-play,.hs-arrows button){background:rgba(255,253,248,.7);border-color:rgba(138,100,36,.35);color:#1E1813}
[data-theme=light] :is(.hs-play,.hs-arrows button):hover{background:rgba(138,100,36,.12)}

/* ---------- tablets and phones: picture on top, text below; swipe instead of arrows ---------- */
@media (max-width:820px){
  .hs-slide{display:block}
  .hs-grid{grid-template-columns:minmax(0,1fr);gap:22px;padding-top:28px}
  .hs-pic{order:-1;width:min(250px,60vw)}
  .hs-txt{max-width:none}
  .hs .hs-slide>.wrap{padding-bottom:40px}
  .hs .hs-brand>.hero-inner{padding-top:8px}
  /* the slide bar sits at the top, like story progress bars, so it is seen on the first screen; the slides start below it */
  .hs .hs-promo .hs-grid{padding-top:64px}
  .hs .hs-brand>.hero-art{margin-top:52px}
  .hs-arrows{display:none}
  .hs-segs button span{display:none}
  .hs-segs button{min-height:44px;align-content:center}
  .hs-ui{gap:8px;top:6px;bottom:auto;z-index:6}
  .hs-play{width:38px;height:38px}
  .hs-mstep{display:grid}
  .hs-hint{display:flex;bottom:auto;top:calc(100% + 6px)}
}
@media (max-width:560px){
  .hs-title{font-size:clamp(32px,9vw,42px)}
  .lang-fa .hs-title,.lang-ar .hs-title{font-size:clamp(26px,7.4vw,34px)}
  .hs-facts{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto;width:100%}
  .hs-facts>div{padding:11px 12px}
  .hs-facts>div:nth-child(odd){padding-inline-start:0;border-inline-start:0}
  .hs-facts>div:nth-child(n+3){border-top:1px solid var(--hs-line)}
  .hs-facts>div:last-child:nth-child(odd){grid-column:1/-1}
  .hs-cta{width:100%}
  .hs-cta .btn{flex:1 1 150px}
  .hs-pic{width:min(210px,56vw)}
  .hs-date b{font-size:96px}
}

/* ---------- calm: no drifting, no autoplay progress, quick fades ---------- */
@media (prefers-reduced-motion:reduce){
  .hs-mstep svg,.hs-hint-ic,.hs-hint-arr i{animation:none}
  .hs .hs-slide,.hs .hs-slide.on{transition-duration:.01s}
  .hs-slide.on .hs-bg img,.hs .hs-promo.on .hs-txt>*,.hs .hs-promo.on .hs-pic,.hs .hs-brand.on.is-replay .hero-inner>*{animation:none}
  .hs-chip i{animation:none}
}
.lite .hs-slide.on .hs-bg img{animation:none}

/* ---------- home sections (order from Admin → Home sections) ---------- */
.home-anchor{display:block;height:0;scroll-margin-top:72px}
.page-home .hx-about .stats{grid-template-columns:repeat(var(--n,4),minmax(0,1fr))}
@media (max-width:560px){
  .page-home .hx-about .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-home .hx-about .stats>div:last-child:nth-child(odd){grid-column:1/-1;border-inline-start:0}
}

/* ---------- welcome slide: the 3D scene, drawn in HTML ----------
   Same composition as js/build/hero3d.js (which takes over on capable computers): the positions and sizes below are
   its frames, stars and sun projected through its camera, in % of the wall (8 × 6.15 scene units, so 1.3 : 1).
   Each frame keeps its painting's proportions (--r = width / height); --s is its longest side in % of the wall width */
.hero-art .hstack{--mx:0;--my:0;position:absolute;z-index:3;top:50%;inset-inline-end:max(1vw,calc((100vw - 1280px) / 2));width:min(50vw,760px);aspect-ratio:1.3;translate:0 -47%;transition:opacity .9s var(--ease);pointer-events:none}
.hero-art .hstack picture{position:static;inset:auto;width:auto;height:auto;opacity:1}
/* the sun: a pale disc inside a wide warm glow */
.hs-halo{position:absolute;left:18.8%;top:-18%;width:76%;aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,240,200,.55),rgba(241,212,140,.32) 25%,rgba(201,160,90,.08) 62%,transparent);mix-blend-mode:screen;animation:hsHalo 7.8s ease-in-out infinite alternate}
.hs-sun{position:absolute;left:46.3%;top:17.6%;width:21%;aspect-ratio:1;border-radius:50%;background:#e8c983;opacity:.16;pointer-events:none}
/* the turning girih stars: a large one behind the paintings, a small one lower down */
.hs-star{position:absolute;pointer-events:none;overflow:visible;fill:none;stroke:#c9a05a;stroke-width:1;vector-effect:non-scaling-stroke}
.hs-star path,.hs-star circle{vector-effect:non-scaling-stroke}
.hs-star-a{left:18.75%;top:7%;width:62.5%;opacity:.55;animation:spin 105s linear infinite}
.hs-star-b{left:2.6%;top:52.6%;width:36%;stroke:#f1d48c;opacity:.35;animation:spin 63s linear infinite reverse}
/* gold dust over the whole hero (a canvas drawn by home.js) */
.hs-dustc{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;transition:opacity .9s var(--ease)}
/* a frame: gold moulding around the painting, floating and turning a little, a link to the work */
.hs-fr{--s:20%;--x:50%;--y:50%;--ry:0deg;--d:10;--ph:0s;position:absolute;left:var(--x);top:var(--y);display:block;pointer-events:auto;cursor:pointer;
  width:calc(var(--s) * min(1, var(--r)));padding:calc(var(--s) * .024);border-radius:1px;
  background:linear-gradient(135deg,#f3dc9c 0%,#c99a4e 22%,#8c6526 48%,#d6ad62 70%,#9b7330 100%);
  box-shadow:0 0 0 1px rgba(60,40,10,.45),inset 0 0 0 1px rgba(255,240,200,.45),0 26px 40px -30px rgba(0,0,0,.6);
  transform:translate(-50%,-50%) translate(calc(var(--mx) * var(--d) * 1px),calc(var(--my) * var(--d) * -.6px)) perspective(1300px) rotateY(calc(var(--ry) + var(--sw) + var(--mx) * 7deg)) rotateX(calc(var(--my) * 4deg));
  animation:hsIn 1.2s var(--ease) both,hsBob 10.5s ease-in-out infinite,hsSway 18s ease-in-out infinite;
  animation-delay:calc(var(--ph) * .12 + .15s),calc(var(--ph) * -1),calc(var(--ph) * -2);will-change:transform;transition:box-shadow .35s var(--ease),filter .35s var(--ease)}
[dir=rtl] .hs-fr{left:auto;right:var(--x);transform:translate(50%,-50%) translate(calc(var(--mx) * var(--d) * 1px),calc(var(--my) * var(--d) * -.6px)) perspective(1300px) rotateY(calc(var(--ry) * -1 - var(--sw) + var(--mx) * 7deg)) rotateX(calc(var(--my) * 4deg))}
.hs-fr:hover{filter:brightness(1.06);box-shadow:0 0 0 1px rgba(60,40,10,.45),inset 0 0 0 1px rgba(255,240,200,.55),0 0 0 6px rgba(230,200,134,.22),0 30px 50px -28px rgba(0,0,0,.65)}
.hs-fr .hs-img{display:block;width:100%;height:auto;aspect-ratio:var(--r);object-fit:cover;background:#2a2119;box-shadow:inset 0 0 0 1px rgba(0,0,0,.45)}
.hs-fr-0{--s:40%;--x:50%;--y:48%;--ry:0deg;--d:16;--ph:0s;z-index:5}
.hs-fr-1{--s:22.5%;--x:18%;--y:60%;--ry:22deg;--d:11;--ph:1.7s;z-index:4}
.hs-fr-2{--s:23%;--x:81%;--y:39%;--ry:-23deg;--d:10;--ph:3.4s;z-index:3}
.hs-fr-3{--s:14%;--x:33%;--y:23%;--ry:11deg;--d:6;--ph:5.1s;z-index:2}
.hs-fr-4{--s:14.5%;--x:69%;--y:79%;--ry:-11deg;--d:7;--ph:6.8s;z-index:2}
.hs-fr-3 .hs-img,.hs-fr-4 .hs-img{filter:brightness(.9)}
.hstack.is-1 .hs-fr-0{--s:48%}
@keyframes hsIn{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
@keyframes hsBob{0%,100%{translate:0 -3.5%}50%{translate:0 3.5%}}
/* the slow turn needs a registered angle so it can live inside the frame's perspective transform */
@property --sw{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes hsSway{0%,100%{--sw:-3.5deg}50%{--sw:3.5deg}}
@keyframes hsHalo{from{opacity:.8}to{opacity:1}}
/* day theme: the 3D scene's warm, solid palette (glowing gold would vanish on the light sky) */
[data-theme=light] .hs-halo{mix-blend-mode:normal;background:radial-gradient(closest-side,rgba(232,201,131,.42),rgba(232,201,131,.2) 30%,rgba(232,201,131,.06) 62%,transparent)}
[data-theme=light] .hs-sun{opacity:.22}
[data-theme=light] .hs-star-a{stroke:#b07f36;opacity:.7}
[data-theme=light] .hs-star-b{stroke:#c9a05a;opacity:.45}
[data-theme=light] .hs-fr{box-shadow:0 0 0 1px rgba(110,75,25,.4),inset 0 0 0 1px rgba(255,244,214,.6),0 22px 34px -28px rgba(70,40,10,.45)}
/* the 3D scene, when it runs, takes the place of this drawing */
.hero-art.is-3d .hstack,.hero-art.is-3d .hs-dustc{opacity:0;pointer-events:none}
.hero-art.is-3d .hs-fr{pointer-events:none}
.lite .hero-art.is-3d .hstack{opacity:1}
@media (min-width:900px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html:not(.no-js):not(.lite):not(.h3d-off) .hero-art :is(.hstack,.hs-dustc){opacity:0;transition:none}
}
@media (max-width:820px){
  /* phones and tablets: the band above the words, three frames like the 3D scene on phones */
  .hero-art .hstack{top:0;bottom:0;inset-inline:0;margin:auto;height:100%;width:auto;max-width:100%;translate:none}
  .hs-fr-0{--s:46%;--y:50%}
  .hs-fr-1{--s:26%;--x:17%;--y:57%}
  .hs-fr-2{--s:26%;--x:83%;--y:43%}
  .hs-fr-3,.hs-fr-4{display:none}
  .hs-star-a{left:12%;top:-2%;width:76%}
  .hs-star-b{display:none}
}
@media (prefers-reduced-motion:reduce){.hs-fr{animation:hsIn .01s both}.hs-star,.hs-halo{animation:none}}
.lite .hs-fr,.lite .hs-star,.lite .hs-halo{animation:none}
.hs-bg picture{display:contents}
