/* V5 — unify scrolling chapters and direct-on-paper image previews.
   All artwork filenames, project presentations and the graphic project viewer remain unchanged. */

/* Intro: literal typewriter letters, no blurred/ghost characters. */
.hero-signature .handtype { background:transparent!important; text-shadow:1px 1px 0 var(--paper), -1px -1px 0 var(--paper); }
.hero-signature {gap:clamp(10px,2vh,20px)}
.hero-signature .handtype:empty::before{content:none!important}
/* Three sequential declarations are cut in from the side rather than faded. */
.manifesto { height:195svh; }
.manifesto-line { opacity:1!important;filter:none!important;transition:none!important; }
.manifesto-line.in-black { text-shadow:none!important; }
.manifesto-sticky { justify-content:center; padding-top:clamp(35px,5vh,72px); }
.manifesto-main {overflow:visible}

/* Black bars are identical across all categories. */
.ticker-black {padding:12px 0!important;}
.ticker .ticker-motion {animation-timing-function:linear;}
.ticker-set .ticker-dot {width:.78em;height:.78em;border-radius:50%;background:var(--yellow)}

/* Fix repeated giant letters colliding/covering each other's lines. */
.section-graphic { padding-top:clamp(35px,4.5vw,65px); padding-bottom:clamp(32px,4vw,64px); }
.chapter-head {display:flex;flex-direction:column;gap:clamp(8px,1.3vw,20px);
    transform:rotate(-3deg);overflow:hidden; margin-bottom:0;}
.chapter-runner,.chapter-runner.offset {display:block;left:0;margin:0!important;
    height:1.08em;line-height:1.05;overflow:hidden;white-space:nowrap;}
.chapter-runner .moving-type {line-height:1.05;align-items:center;}
.graphic-background-text {overflow:hidden;line-height:1.04;min-height:1.1em;}
.graphic-background-text .moving-type {align-items:center;line-height:1.04;}
/* The already approved graphic project enlargement remains unchanged. */

/* Four other chapters: same overprinted, moving ultramarine editorial system. */
.portfolio-unified {position:relative;isolation:isolate;
    padding:clamp(30px,5vw,70px) var(--frame) clamp(55px,6vw,100px)!important;
    overflow:hidden;min-height:500px;}
.unified-chapter { position:absolute;z-index:0;top:25px;bottom:0;left:-7vw;width:114vw;
    display:flex;flex-direction:column;justify-content:space-around;gap:clamp(44px,6vw,95px);
    pointer-events:none;transform:rotate(-3deg);color:var(--ultra);overflow:hidden; }
.unified-title-line {width:100%;flex:none;height:1.15em;min-height:clamp(78px,13vw,220px);
    font:900 clamp(78px,15vw,236px)/1.05 var(--display);
    letter-spacing:-.08em;white-space:nowrap;overflow:hidden;}
.unified-title-line .moving-type {line-height:1.04;animation-duration:30s;align-items:center;}
.unified-title-line:nth-child(2n) .moving-type {animation-duration:36s;}
.unified-title-line:nth-child(3n) .moving-type {animation-duration:34s;}
.unified-gallery {position:relative;z-index:2;display:grid;max-width:1520px;margin:0 auto;
    grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(65px,8vw,130px) clamp(14px,3vw,50px);
    padding:clamp(125px,14vw,235px) 1.5vw clamp(15px,3vw,44px);align-items:start;}
.gallery-item {position:relative;display:block;min-width:0;margin:0;padding:0;border:0;
    appearance:none;background:transparent;text-align:left;cursor:pointer;
    transition:opacity .9s ease,transform 1s cubic-bezier(.16,.9,.2,1);}
.gallery-item:nth-child(6n + 1){grid-column:1/span 5;}
.gallery-item:nth-child(6n + 2){grid-column:8/span 5; margin-top:clamp(45px,6vw,100px);}
.gallery-item:nth-child(6n + 3){grid-column:3/span 4; margin-top:clamp(2px,1.5vw,28px);}
.gallery-item:nth-child(6n + 4){grid-column:9/span 4; margin-top:clamp(35px,5vw,85px);}
.gallery-item:nth-child(6n + 5){grid-column:1/span 5; margin-top:clamp(10px,3vw,50px);}
.gallery-item:nth-child(6n){grid-column:7/span 5; margin-top:clamp(40px,5vw,80px);}
.gallery-item.reveal {opacity:0;transform:translate3d(-95px,12px,0);transition-delay:var(--delay,0ms);}
.gallery-item.reveal.is-visible {opacity:1;transform:translate3d(0,0,0);}
.gallery-item.reveal.is-visible:hover,.gallery-item.reveal.is-visible:focus-visible {
    z-index:8;transform:translate3d(0,-10px,0) scale(1.045);
    transition-delay:0ms;}
.gallery-art {position:relative;display:block;width:100%;box-shadow:0 9px 25px rgba(0,0,0,.12);}
.gallery-art img {display:block;width:auto;height:auto;max-height:650px;max-width:100%;
    object-fit:contain;object-position:top left;}
.gallery-item .project-hover {z-index:3;}
.gallery-viewer-head {justify-content:flex-end;padding-bottom:8px;}
.gallery-viewer-image {padding-top:6px;}
.gallery-viewer-image img {box-shadow:0 8px 33px rgba(10,10,10,.1);}
/* Suppress legacy caption and slash-accent headings — chapter tags now live ONLY in black tickers. */
.portfolio-unified .chapter-notes,.portfolio-unified .editorial-caption,
.portfolio-unified .pattern-heading-wall,.portfolio-unified .il-typography,
.portfolio-unified .huge-word,.portfolio-unified .experiment-wall {display:none!important;}

@media(max-width:1000px){
  .unified-gallery {gap:clamp(48px,7vw,80px) 20px;}
  .unified-title-line {font-size:18vw;min-height:19vw;}
  .gallery-art img{max-height:530px;}
}
@media(max-width:700px){
  .hero-signature .handtype{background:transparent!important;}
  .manifesto{height:185svh;}
  .manifesto-sticky {justify-content:center;padding:35px 13px;}
  .manifesto-line {font-size:12vw;line-height:1.04;}
  .chapter-head {gap:10px;margin:0!important;}
  .chapter-runner,.chapter-runner.offset{font-size:22vw;height:1.1em;line-height:1.07;}
  .portfolio-unified {padding:clamp(38px,8vw,62px) 13px clamp(45px,8vw,70px)!important;min-height:340px;}
  .unified-chapter {top:38px;left:-10vw;width:120vw;gap:45px;}
  .unified-title-line {font-size:26vw;min-height:28vw;}
  .unified-gallery {grid-template-columns:repeat(2,minmax(0,1fr));gap:58px 16px;
      padding:clamp(130px,43vw,230px) 5px 25px;}
  .gallery-item:nth-child(n){grid-column:auto;grid-row:auto;margin-top:0;align-self:start;}
  .gallery-item:nth-child(4n + 2){margin-top:48px;}
  .gallery-item:nth-child(4n + 3){margin-top:28px;}
  .gallery-item:nth-child(5n){grid-column:span 2;width:75%;justify-self:center;}
  .gallery-art img{width:100%;height:auto;max-height:470px;object-fit:contain;}
  .gallery-item.reveal {transform:translate3d(-45px,8px,0);}
  .gallery-item.reveal.is-visible{transform:translate3d(0,0,0);}
  .gallery-item.reveal.is-visible:hover{transform:scale(1.035);}
  .gallery-viewer-head{padding:16px 18px 8px;}
}
@media(prefers-reduced-motion:reduce) {
  .gallery-item.reveal,.gallery-item.reveal.is-visible {opacity:1!important;transform:none!important;}
  .manifesto-line {clip-path:none!important;transform:none!important;}
}
/* Final QA correction: repeated top title and stage title previously occupied
   the same coordinates. Keep one coherent four-row title system behind covers. */
.section-graphic .chapter-head {display:none!important;}
.section-graphic .project-stage {margin-top:0!important;}
/* Clip the width of the actual printed word, not a full-width line box. */
.manifesto-line {width:max-content;max-width:none;}
