/* V6: Only the requested red calligraphy, unclipped type, and scroll density.
   No changes to content arrays, images, overlay viewing or navigation. */
:root {
  /* Windows calligraphic primary; live multilingual fallback for other devices. */
  --hand:'Monotype Corsiva','Comforter','Snell Roundhand','Marck Script',cursive;
}

/* Return the solid paper knockout used by the earlier, preferred signature.
   Allow ornate capitals and descenders to extend outside the ink bounds. */
.hero-signature {
  width:min(85vw,930px);
  top:46%;
  gap:clamp(7px,1.5vh,16px);
  overflow:visible;
}
.hero-signature .handtype {
  display:inline-block;
  width:max-content;
  max-width:95vw;
  overflow:visible;
  background:var(--paper)!important;
  font:400 clamp(29px,4.8vw,74px)/1.36 var(--hand)!important;
  font-style:normal!important;
  font-synthesis:none;
  letter-spacing:0;
  white-space:nowrap;
  text-shadow:none!important;
  padding:.08em .28em .20em;
  min-height:1.65em;
}
.hero-signature .handtype:empty {
  background:transparent!important;
}
.hero-red-1 {transform:translateX(-19%) rotate(-1deg)}
.hero-red-2 {transform:translateX(18%) rotate(1deg)}

/* Entry after the navigation strip: the first word is already visible.
   Tight top alignment prevents an empty viewport on arrival. */
.manifesto {height:146svh!important;}
.manifesto-sticky {
  justify-content:flex-start!important;
  padding-top:clamp(38px,5vh,66px)!important;
  gap:clamp(7px,1.5vh,16px)!important;
}
.manifesto-main {padding-top:0;}
.manifesto-line {filter:none!important;opacity:1!important;}
.manifesto-line.in-black {filter:none!important;}
.manifesto-quote {
  margin-top:clamp(12px,2vh,22px)!important;
}

/* Uniform chapter density: heading visible soon after ribbon, artwork just below.
   The heading remains the same gigantic continuous blue typographic motion. */
.portfolio-unified {
  min-height:0!important;
  padding-top:clamp(35px,4vw,60px)!important;
  padding-bottom:clamp(35px,4vw,60px)!important;
}
.unified-chapter {
  top:0!important;
  bottom:0!important;
  display:block!important;
  gap:0!important;
  justify-content:initial!important;
}
.unified-title-line {
  position:absolute!important;
  width:100%;
  top:0;
  height:1.15em;
  font-size:clamp(78px,15vw,236px);
}
.unified-title-line:nth-child(1){top:1.5%;}
.unified-title-line:nth-child(2){top:26%;}
.unified-title-line:nth-child(3){top:51%;}
.unified-title-line:nth-child(4){top:76%;}
.unified-gallery {
  padding:clamp(80px,8.5vw,120px) 1.5vw clamp(10px,2vw,24px)!important;
  gap:clamp(32px,4.5vw,67px) clamp(12px,2.5vw,38px)!important;
  grid-auto-flow:row dense;
}
.gallery-item:nth-child(6n + 1){grid-column:1/span 5;margin-top:0;}
.gallery-item:nth-child(6n + 2){grid-column:8/span 5;margin-top:clamp(28px,3vw,46px);}
.gallery-item:nth-child(6n + 3){grid-column:2/span 5;margin-top:0;}
.gallery-item:nth-child(6n + 4){grid-column:8/span 5;margin-top:clamp(15px,2vw,30px);}
.gallery-item:nth-child(6n + 5){grid-column:1/span 5;margin-top:0;}
.gallery-item:nth-child(6n){grid-column:8/span 5;margin-top:clamp(22px,2vw,34px);}

@media(max-width:700px) {
  .hero-signature {top:48%;width:100%;gap:6px;}
  .hero-signature .handtype {
    font-size:clamp(28px,6.6vw,45px)!important;
    padding:.12em .20em .24em;
    min-height:1.55em;
  }
  .hero-red-1{transform:translateX(-9%) rotate(-1deg)}
  .hero-red-2{transform:translateX(11%) rotate(1deg)}
  .manifesto {height:131svh!important;}
  .manifesto-sticky {padding-top:clamp(33px,6vh,58px)!important;}
  .manifesto-line{font-size:12vw;}
  .manifesto-line.in-black{font-size:10.5vw;}
  .manifesto-quote{margin-top:12px!important;}
  .portfolio-unified{padding-top:25px!important;padding-bottom:34px!important;}
  .unified-chapter{top:0!important;}
  .unified-title-line{font-size:26vw;min-height:0;height:1.15em;}
  .unified-gallery{
    padding:clamp(70px,15vw,95px) 5px 12px!important;
    gap:clamp(25px,7vw,40px) 13px!important;
    grid-auto-flow:row;
  }
  .gallery-item:nth-child(n){grid-column:auto;margin-top:0;}
  .gallery-item:nth-child(4n + 2){margin-top:30px;}
  .gallery-item:nth-child(4n + 3){margin-top:12px;}
  .gallery-item:nth-child(5n){grid-column:span 2;width:75%;justify-self:center;}
}
@media(prefers-reduced-motion:reduce){
  .manifesto-line {clip-path:none!important;transform:none!important;}
}
