/* Focused refinements — Dark Collection V3 */
/* The four changing views keep a 3:4 portrait canvas, using contain rather than cropping. */
.folio-tile-row{align-items:start;max-height:none!important;min-height:0!important;gap:clamp(9px,1.7vw,26px)}
.folio-tile{align-items:stretch;min-width:0}
.folio-tile img{display:block;width:100%;height:auto!important;max-height:none!important;aspect-ratio:3 / 4!important;object-fit:contain!important;object-position:center center!important;background:#e9e4de;box-shadow:0 8px 21px rgba(42,30,40,.16)}
.folio-tile:hover img{transform:translateY(-4px)!important}
.story-pin[data-work="0"]{background:#e8e5dd}
.story-pin[data-work="1"]{background:#f2d4e9}
.works-story{background:#e8e5dd}
/* Each halo is behind the title, drawings and interactive elements. */
.ambient-follow{isolation:isolate}
.ambient-follow>.cursor-aura{position:absolute;inset:0;pointer-events:none!important;z-index:0;background:radial-gradient(circle 440px at var(--aura-x,50%) var(--aura-y,48%),rgba(222,142,199,.19) 0%,rgba(180,103,170,.075) 34%,transparent 76%);opacity:.9;transition:opacity .45s ease}
.ambient-follow>.cursor-aura::after{content:"";position:absolute;inset:0;background:radial-gradient(circle 185px at var(--aura-x,50%) var(--aura-y,48%),rgba(244,197,232,.065),transparent 75%)}
.ambient-follow:not(:hover)>.cursor-aura{opacity:.56}
/* The opening and large dark chapters retain their existing layers and typography. */
.hero>.cursor-aura,.monument-pin>.cursor-aura{z-index:1}
.film-section>.cursor-aura,.archive>.cursor-aura,.colophon>.cursor-aura,.studio-newsletter>.cursor-aura{z-index:0}
.memory-overlay>.cursor-aura{z-index:1}
.memory-overlay>.transition-content,.memory-overlay>.transition-side,.memory-overlay>.transition-bottom{position:relative;z-index:2}
/* The pink glow is intentionally understated in inner-page footers. */
.studio-newsletter>.cursor-aura,.colophon>.cursor-aura{background:radial-gradient(circle 380px at var(--aura-x,50%) var(--aura-y,40%),rgba(229,155,204,.14),transparent 77%)}
@media (max-width:760px){.folio-tile-row{align-items:start!important;gap:8px}.folio-tile img{width:100%;height:auto!important;aspect-ratio:3 / 4!important;max-height:none!important}}
@media (prefers-reduced-motion:reduce){.ambient-follow>.cursor-aura{opacity:.4!important;transition:none!important}}


/* V2 uses two absolutely positioned images inside a crossfade wrapper. The wrapper,
   not the img node, must own the 3:4 geometry. */
.folio-image-stack{position:relative!important;display:block!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:3 / 4!important;flex:0 0 auto!important;overflow:hidden!important;background:#e9e4de!important}
.folio-image-stack img,.folio-image-stack img.is-visible,.folio-image-stack.is-landscape img,.folio-image-stack.is-full img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center center!important;background:transparent!important}
.folio-tile{min-height:0!important;height:auto!important}
@media(max-width:450px){.folio-tile{height:auto!important}.folio-image-stack{max-height:none!important;min-height:0!important;flex:0 0 auto!important}}


/* -------- Dark Collection V4: final visual balancing -------- */
/* Four 3:4 moving-artwork windows: fill the window at the smallest necessary
   scale (cover), rather than letterboxing landscape or non-3:4 imagery. */
.folio-image-stack{
  aspect-ratio:3 / 4!important;
  background:#e9e4de!important;
}
.folio-image-stack img,
.folio-image-stack img.is-visible,
.folio-image-stack.is-landscape img,
.folio-image-stack.is-full img{
  object-fit:cover!important;
  object-position:center center!important;
  background:transparent!important;
  transform:scale(1.012)!important;
}
.folio-tile:hover .folio-image-stack img{transform:scale(1.012)!important}
/* Unframed original drawings, approx. 28% larger on the bright gallery stage. */
#storyPin #artStage{transform:translate(-50%,-49%) scale(1.28);transform-origin:center center}
/* Monument typography remains visible behind the 13%-larger artwork. */
@media(min-width:761px){
 .monument-pin .monument-type-back{font-size:clamp(104px,15.3vw,275px)}
}
/* The Memory / Faith / Presence text, side captions, and closing prompt all
   share the same optical central axis. Keep the scroll-driven reveal intact. */
.hero .memory-overlay{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
}
.hero .memory-overlay>.transition-content{
  width:100%;
  max-width:1200px;
  margin-inline:auto;
  text-align:center;
  flex:none;
}
.hero .memory-overlay .transition-title{text-align:center;margin-inline:auto}
.hero .memory-overlay .transition-description{margin-left:auto;margin-right:auto}
.hero .memory-overlay>.transition-side{
  top:auto;left:5%;right:5%;bottom:83px;
  justify-content:center;align-items:center;gap:clamp(12px,3vw,38px);
  text-align:center;flex-wrap:wrap;
}
.hero .memory-overlay>.transition-bottom{
  left:0;right:0;bottom:34px;
  display:flex;justify-content:center;align-items:center;gap:12px;
  text-align:center;
}
/* The Archive should have no floating miniatures; give the original grand
   headline its full breathing room. */
.archive-hero>.studio-title,
.archive-hero>.studio-kicker,
.archive-hero>p:not(.studio-kicker){max-width:100%}
.archive-hero>p:last-of-type{max-width:580px}
/* Home footer: remove only the V3-added cursor glow; retain original footer
   identity, typography, newsletter and links. */
body[data-ambient-page="memory"] .footer-drift-glow{display:none!important}
/* Only requested pages may keep inner-footer glow. */
body[data-ambient-page="none"] .studio-newsletter-glow{display:none!important}
/* New glow on the Manifesto headline and reading area, and on selected
   Archive / Journal panels, is subtle and layered behind actual content. */
.manifesto-head.ambient-follow,
.manifesto-reading.ambient-follow,
.journal-article-hero.ambient-follow{isolation:isolate}
.manifesto-head.ambient-follow>.cursor-aura,
.manifesto-reading.ambient-follow>.cursor-aura,
.journal-article-hero.ambient-follow>.cursor-aura{z-index:0}
.manifesto-head.ambient-follow>div:not(.sub-ring):not(.cursor-aura),
.manifesto-head.ambient-follow>p,
.manifesto-reading.ambient-follow>.manifesto-reading-inner,
.journal-article-hero.ambient-follow>*:not(.cursor-aura){position:relative;z-index:1}
@media(max-width:760px){
  #storyPin #artStage{transform:translate(-50%,-49%) scale(1.18)}
  .hero .memory-overlay>.transition-side{bottom:73px;font-size:7px;letter-spacing:.11em;gap:5px 17px}
  .hero .memory-overlay>.transition-bottom{bottom:26px}
  .hero .memory-overlay>.transition-content{width:100%;max-width:100%}
}
@media(max-width:420px){
 #storyPin #artStage{transform:translate(-50%,-49%) scale(1.13)}
 .hero .memory-overlay>.transition-side{bottom:67px;font-size:6px;gap:5px 11px}
 .hero .memory-overlay>.transition-bottom{bottom:24px}
}
@media(prefers-reduced-motion:reduce){
 .folio-image-stack img,.folio-image-stack img.is-visible{transition:opacity .1s!important;transform:none!important}
}

/* V5 — simplify the experience without altering the visual choreography. */
.memory-simplified .transition-content{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:100%!important;max-width:none!important;margin-inline:auto!important}
.memory-simplified .transition-title{margin-inline:auto!important;text-align:center!important}
.direct-artist-contact{display:flex;flex-direction:column;align-items:center;gap:11px;margin:clamp(30px,5vw,64px) auto 20px;text-align:center}
.direct-artist-contact-label{font-family:'DM Sans',Arial,sans-serif;font-size:9px;letter-spacing:.18em;line-height:1.65;color:rgba(236,217,232,.55)}
.direct-artist-contact-address{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(25px,3.1vw,47px);font-weight:400;line-height:1.1;color:#f6eaf1!important;text-decoration:none;border-bottom:1px solid rgba(238,190,221,.28);padding-bottom:7px;transition:border-color .25s,color .25s}
.direct-artist-contact-address:hover{color:#f3b9dc!important;border-color:#f3b9dc}
.direct-artist-contact-address:focus-visible{outline:2px solid #edb9dc;outline-offset:8px}
@media(max-width:550px){.direct-artist-contact-label{max-width:95%;font-size:8px}.direct-artist-contact-address{font-size:28px}}
.sub-main.ambient-follow{position:relative}.sub-main.ambient-follow>*:not(.cursor-aura):not(.sub-lines):not(.sub-ring){position:relative;z-index:1}

/* V6 — The Work Continues: on tablet and phone the four windows fill the sheet
   as a two-by-two grid. Desktop keeps the original single row of 3:4 windows. */
@media(max-width:1024px){
#folioSheet .folio-tile-row{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  align-content:stretch!important;
  max-height:none!important;
  min-height:0!important;
  flex:1 1 auto!important;
  gap:clamp(12px,2.2vw,34px)!important;
}
#folioSheet .folio-tile{height:100%!important;min-height:0!important}
#folioSheet .folio-image-stack{aspect-ratio:auto!important;height:auto!important;flex:1 1 auto!important;min-height:0!important}
#folioSheet .folio-tile span{flex:0 0 auto!important}
}
