/* Homepage only. Shared Cieffe shell, typography, menu and wordmark remain original. */
.home .chapter-stage.deck-ready{height:calc(100vh + (var(--chapter-count,9) - 1)*65vh)}
.home .chapter-card .home9-card-body{font-size:clamp(13px,1.05vw,16px);line-height:1.55;max-width:570px;margin:18px auto 0;text-wrap:pretty}
.home .chapter-copy h2{font-size:clamp(42px,5.6vw,92px)}
.home .chapter-link{padding-bottom:48px}
.home .chapter-card .media img{object-position:center top}
.home .chapter-card[data-fit=contain] .media img{object-fit:contain;background:#343b33}
.home .chapter-card .media:after{background:linear-gradient(180deg,#1110 15%,#1113 40%,#111d 100%)}
.home .chapter-card .home9-photo-strip{display:grid;grid-template-columns:repeat(var(--panels),minmax(0,1fr));gap:5px;background:#303a33}
.home .chapter-card .home9-photo-strip img{position:static;inset:auto;width:100%;height:100%;object-fit:contain;object-position:center top;min-width:0}
.home .home9-lead{font-size:18px;line-height:1.7;max-width:680px;margin:30px 0 50px}
.home .home9-triptych,.home .home9-pieces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:50px 0 35px}
.home .home9-pieces{grid-template-columns:repeat(4,minmax(0,1fr))}
.home .home9-triptych figure,.home .home9-pieces figure{margin:0 0 22px;overflow:hidden;border-radius:18px}
.home .home9-triptych img,.home .home9-pieces img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.home .home9-triptych h3,.home .home9-pieces h3{font-size:clamp(22px,2.1vw,32px);line-height:1.2;margin:12px 0}
.home .home9-pieces .eyebrow{margin:20px 0 0}
.home .home9-pieces .text-link{font-size:12px;text-align:left;margin-top:15px}
.home .home9-film-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:55px}
.home .home9-film-grid h3{font-size:25px;margin:0 0 20px}
.home .home9-film-grid .media{aspect-ratio:16/9;min-height:0;border-radius:18px}
.home .home9-subsection{padding:70px 0 0;scroll-margin-top:110px}
.home .home9-subsection h2{font-size:clamp(42px,5vw,78px)}
.home .home9-subsection .steps{margin-top:40px}
.home .home9-case{margin-top:100px;padding-top:70px;border-top:1px solid var(--line);scroll-margin-top:110px}
.home .home9-case>figure img{width:100%;height:auto;border-radius:20px;margin-top:45px}
.home #brand-manufacturing figure img,.home #project-start figure img{aspect-ratio:4/5;object-fit:cover;border-radius:20px;max-height:760px}
.home .home9-section p,.home #buyer-questions p{overflow-wrap:break-word}
@media(max-width:1000px){.home .home9-pieces{grid-template-columns:repeat(2,minmax(0,1fr))}.home .chapter-copy h2{font-size:clamp(42px,6vw,68px)}.home .chapter-link{padding-bottom:40px}}
@media(max-width:650px){
 .home .chapter-copy h2{font-size:clamp(32px,9.2vw,42px);line-height:1.04}
 .home .chapter-copy .eyebrow{font-size:8px;margin-bottom:10px}
 .home .chapter-card .home9-card-body{font-size:11px;line-height:1.45;max-width:290px;margin-top:12px}
 .home .chapter-enter{font-size:10px;margin-top:13px}
 .home .chapter-link{padding:0 7% 45px}
 .home .chapter-card .media img{height:100%;aspect-ratio:auto;object-fit:cover;object-position:center 25%}
 .home .chapter-card .home9-photo-strip{display:block}
 .home .chapter-card .home9-photo-strip img{position:absolute;inset:0;object-fit:cover;object-position:center 25%}
 .home .chapter-card .home9-photo-strip img:not(:first-child){display:none}
 .home .chapter-card .media:after{background:linear-gradient(180deg,#1110 10%,#1114 35%,#111e 75%)}
 .home .chapter-card:has(video) .media img,.home .chapter-card:has(video) .media video{height:auto;aspect-ratio:16/9;object-fit:contain}
 .home .chapter-card:has(video) .media:after{background:linear-gradient(180deg,transparent 15%,#303a3340 35%,#303a33 52%)}
 .home .home9-triptych{grid-template-columns:1fr;gap:38px;margin-top:35px}
 .home .home9-pieces{gap:28px 15px;margin-top:35px}
 .home .home9-pieces h3{font-size:23px}.home .home9-pieces .text-link{font-size:11px}
 .home .home9-film-grid{grid-template-columns:1fr;gap:35px}
 .home .home9-lead{font-size:16px;margin:25px 0 35px}
 .home .home9-subsection{padding-top:50px}
 .home .home9-case{margin-top:65px;padding-top:45px}
 .home .chapter-controls select{max-width:230px;letter-spacing:0}
}
@media(max-height:700px){.home .chapter-card .home9-card-body{font-size:10px;margin-top:8px}.home .chapter-copy h2{font-size:34px}.home .chapter-link{padding-bottom:38px}.home .chapter-enter{margin-top:9px}}

/* Larger homepage deck; keep navigation and rear cards clear. */
@media(min-width:651px){
 .home .deck-ready .chapter-deck{left:4vw;width:92vw;top:max(150px,14svh);height:calc(97svh - max(150px,14svh))}
 .home .deck-ready .chapter-index{left:1vw}
 .home .deck-ready .chapter-total{right:1vw}
}
@media(max-width:650px){
 .home .deck-ready .chapter-deck{left:3%;width:94%;top:max(25svh,180px);height:calc(94svh - max(25svh,180px))}
}

/* Future deck covers load on selection; preserve the original no-JS cover. */
.chapter-card img[data-deck-src]:not([src]){visibility:hidden}
.chapter-card .media noscript img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
