/* ZNJ 3.0 — every homepage chapter uses a viewport-sized artboard.
 * Existing photographs, copy and URLs are unchanged. When intrinsically
 * taller than the available view, never clip copy: the section expands and
 * the snap engine deliberately leaves it in native scroll flow.
 */
@media(min-width:901px){
  body.znj-home .znj-desktop-experience{
    --znj-vh:calc(100svh - var(--znj-stack-header,88px));
  }
  body.znj-home .znj-desktop-experience > section{
    min-height:var(--znj-vh)!important;
    height:auto!important;
    max-height:none!important;
    padding-block:clamp(18px,3svh,45px)!important;
    scroll-snap-align:none!important;
    box-sizing:border-box;
  }
  body.znj-home .znj-desktop-experience > section :is(h1,h2,h3){
    overflow-wrap:break-word;
    text-wrap:balance;
  }
  body.znj-home .znj-desktop-experience > section.znj-company-story .znj-story-layout,
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite > .znj-invite-grid,
  body.znj-home .znj-desktop-experience > section.znj-service-sheet .znj-service-sheet-layout{
    min-height:0!important;
    height:auto;
    padding-block:clamp(8px,2svh,24px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-service-sheet .znj-service-sheet-media,
  body.znj-home .znj-desktop-experience > section.znj-company-story .znj-story-visual,
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-invite-visual{
    height:clamp(260px,58svh,700px)!important;
    max-height:calc(var(--znj-vh) - 70px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-service-sheet .znj-service-sheet-copy{
    padding-block:clamp(8px,1.8svh,20px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-service-sheet .znj-service-sheet-copy h2{
    font-size:clamp(39px,min(6.1vw,10svh),100px)!important;
    margin-block:clamp(12px,2svh,23px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-company-story .znj-story-layout h2,
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite h2{
    font-size:clamp(44px,min(6.7vw,10svh),110px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-services-intro h2{
    font-size:clamp(54px,min(8.2vw,13svh),142px)!important;
    margin-block:clamp(12px,2svh,23px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-services-intro .znj-service-index{
    margin-top:clamp(18px,3svh,40px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-services-intro .znj-service-index a{
    padding:clamp(9px,1.4svh,16px) 16px!important;
  }
  /* Long data collections become horizontal rails INSIDE the landscape
     sheet, like product showcases, rather than very tall multi-row grids. */
  body.znj-home .znj-desktop-experience > section.znj-home-journal,
  body.znj-home .znj-desktop-experience > section.zm-dark-band,
  body.znj-home .znj-desktop-experience > section.zm-footprint,
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite,
  body.znj-home .znj-desktop-experience > section.znj-plan{
    padding-block:clamp(20px,3svh,50px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-home-journal .znj-home-published-head,
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-heading{
    margin-bottom:clamp(14px,3svh,34px)!important;
    padding-bottom:clamp(12px,2svh,24px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-home-journal .znj-home-published-head h2,
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-heading h2,
  body.znj-home .znj-desktop-experience > section.zm-footprint .zm-heading h2,
  body.znj-home .znj-desktop-experience > section.znj-plan .znj-plan__intro h2,
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-intro h2{
    font-size:clamp(42px,min(6.3vw,10svh),99px)!important;
    line-height:1.02!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-home-journal .znj-home-published-grid,
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-home-published-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:clamp(12px,2vw,24px)!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:14px;
    overscroll-behavior-inline:contain;
    padding:10px 14px 16px!important;
    scrollbar-width:thin;
  }
  body.znj-home .znj-desktop-experience > section.znj-home-journal .znj-home-published-card,
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-home-published-card{
    flex:0 0 min(32vw,410px)!important;
    width:min(32vw,410px)!important;
    min-width:250px;
    scroll-snap-align:start;
    max-height:none!important;
    height:auto!important;
    align-self:stretch;
  }
  body.znj-home .znj-desktop-experience > section.znj-home-journal .znj-home-published-media,
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-home-published-media{
    aspect-ratio:16/9!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-footprint .zm-footprint-list{
    display:flex!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    gap:12px!important;
    padding:8px 0 22px;
    margin-top:clamp(20px,3svh,40px)!important;
    overscroll-behavior-inline:contain;
  }
  body.znj-home .znj-desktop-experience > section.zm-footprint .zm-footprint-brand{
    flex:0 0 clamp(180px,19vw,265px)!important;
    min-height:clamp(93px,17svh,170px)!important;
    scroll-snap-align:start;
  }
  body.znj-home .znj-desktop-experience > section.znj-plan .znj-plan__inner{
    min-height:0!important;
    align-items:center;
  }
  body.znj-home .znj-desktop-experience > section.znj-plan .znj-plan__option{
    min-height:0!important;
    padding-block:clamp(12px,2svh,26px)!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature{
    min-height:0!important;
    height:clamp(260px,48svh,570px)!important;
    max-height:calc(var(--znj-vh) - 150px);
    margin-bottom:clamp(12px,2svh,24px)!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature > img{
    min-height:0!important;max-height:100%!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature-content{
    padding:clamp(18px,3vw,45px)!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature-content h2{
    font-size:clamp(27px,min(3.2vw,6svh),57px)!important;
  }
  /* The second work feature remains reachable as a native horizontal item. */
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-work-archive-highlight{
    max-width:100%;
    overflow:visible;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-work-archive-highlight .zm-feature{
    height:auto!important;
    min-height:260px!important;
    max-height:none!important;
  }
  /* Cinematic chapter contains a gallery + film; keep its full content in
     flow instead of forcing a height that would hide the video or controls. */
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite{
    height:auto!important;
    min-height:var(--znj-vh)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-intro{
    margin-bottom:clamp(14px,2svh,32px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-marketplace-events{
    width:100%;
    min-width:0;
  }
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite{
    padding-block:clamp(16px,2svh,30px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-invite-visual{
    height:clamp(210px,40svh,510px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-home-calendar{
    padding-block:clamp(10px,1.5svh,25px)!important;
  }
}
@media(min-width:901px) and (max-height:700px){
  body.znj-home .znj-desktop-experience > section.znj-service-sheet .znj-service-sheet-media,
  body.znj-home .znj-desktop-experience > section.znj-company-story .znj-story-visual,
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-invite-visual{
    height:clamp(180px,47svh,350px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-services-intro h2{
    font-size:clamp(38px,8svh,72px)!important;
  }
}
@media(max-width:900px){
  body.znj-home .znj-mobile-home{
    --znj-m-available:calc(100svh - var(--znj-m-header,78px));
  }
  body.znj-home .znj-mobile-home > .znj-m-panel{
    min-height:var(--znj-m-available)!important;
    height:auto!important;max-height:none!important;
    padding-top:clamp(10px,2svh,22px)!important;
    padding-bottom:clamp(34px,5svh,65px)!important;
    box-sizing:border-box;
  }
  body.znj-home .znj-mobile-home :is(h1,h2,h3){
    overflow-wrap:break-word;
    text-wrap:balance;
  }
  body.znj-home .znj-mobile-home :is(.znj-m-services,.znj-m-work,.znj-m-journal,.znj-m-events){
    gap:clamp(10px,2svh,20px)!important;
    justify-content:center!important;
  }
  body.znj-home .znj-mobile-home .znj-m-panel-content{
    padding-inline:clamp(16px,5vw,30px)!important;
  }
  body.znj-home .znj-mobile-home h1,
  body.znj-home .znj-mobile-home h2{
    font-size:clamp(30px,min(9vw,6svh),48px)!important;
    line-height:1.04!important;
    margin-bottom:clamp(8px,1.5svh,17px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-hero h1{
    font-size:clamp(41px,min(13vw,8.5svh),69px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-panel-content > p{
    font-size:clamp(12px,1.8svh,15px)!important;
    line-height:1.55!important;
  }
  body.znj-home .znj-mobile-home .znj-m-eyebrow{
    margin-bottom:clamp(8px,1.4svh,15px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-actions{
    margin-top:clamp(12px,2svh,24px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-actions a{
    min-height:40px!important;padding:9px 12px!important;
  }
  body.znj-home .znj-mobile-home .znj-m-carousel{
    gap:12px!important;
    padding-block:4px 10px!important;
  }
  body.znj-home .znj-mobile-home .znj-m-product-card{
    flex:0 0 min(83vw,352px)!important;
    max-width:min(83vw,352px)!important;
    min-height:0!important;
    height:auto!important;
  }
  body.znj-home .znj-mobile-home .znj-m-card-photo,
  body.znj-home .znj-mobile-home .znj-m-work .znj-m-card-photo,
  body.znj-home .znj-mobile-home .znj-m-journal .znj-m-card-photo,
  body.znj-home .znj-mobile-home .znj-m-events .znj-m-card-photo{
    height:clamp(105px,22svh,230px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-card-copy,
  body.znj-home .znj-mobile-home .znj-m-work .znj-m-card-copy,
  body.znj-home .znj-mobile-home .znj-m-journal .znj-m-card-copy,
  body.znj-home .znj-mobile-home .znj-m-events .znj-m-card-copy{
    min-height:0!important;
    padding:clamp(10px,2svh,18px)!important;
    gap:clamp(5px,1svh,10px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-card-copy h3{
    font-size:clamp(17px,4.6vw,24px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-card-copy p{
    line-height:1.48!important;
    overflow-wrap:anywhere;
  }
  body.znj-home .znj-mobile-home .znj-m-image{
    max-height:clamp(125px,27svh,300px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-story .znj-m-panel-content,
  body.znj-home .znj-mobile-home .znj-m-market .znj-m-panel-content{
    padding:clamp(12px,3svh,27px)!important;
  }
  body.znj-home .znj-mobile-home .znj-m-panel-counter{
    margin-top:clamp(12px,3svh,35px)!important;
  }
}
@media(max-width:900px) and (max-height:640px){
  body.znj-home .znj-mobile-home .znj-m-card-photo,
  body.znj-home .znj-mobile-home .znj-m-work .znj-m-card-photo,
  body.znj-home .znj-mobile-home .znj-m-journal .znj-m-card-photo,
  body.znj-home .znj-mobile-home .znj-m-events .znj-m-card-photo{
    height:clamp(85px,17svh,140px)!important;
  }
  body.znj-home .znj-mobile-home h1,
  body.znj-home .znj-mobile-home h2{
    font-size:clamp(27px,7svh,42px)!important;
  }
}

/* Complete catalogue and cinematic sheet coverage. */
@media(min-width:901px){
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite{
    display:grid!important;
    grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr)!important;
    grid-template-rows:auto minmax(0,1fr);
    align-items:stretch;column-gap:clamp(16px,2vw,34px);
    min-height:var(--znj-vh)!important;
    padding:clamp(15px,2svh,30px) clamp(20px,3vw,55px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite > .znj-scroll-intro{
    grid-column:1/-1;
    width:100%;max-width:none!important;
    margin:0 0 clamp(8px,1svh,18px)!important;
    padding:0!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite > .znj-scroll-gallery{
    grid-column:1;grid-row:2;
    min-width:0;
    min-height:0!important;height:auto!important;
    margin:0!important;
    overflow:hidden!important;
    border-radius:clamp(12px,2vw,30px);
    background:#1a211e;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-gallery-stage{
    position:relative!important;
    height:auto!important;min-height:0!important;
    padding:clamp(10px,2svh,24px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-gallery-head{
    width:100%;padding-inline:0;margin-bottom:10px;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-gallery-head h2{
    font-size:clamp(25px,min(3vw,5svh),54px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-gallery-card{
    flex:0 0 clamp(190px,24vw,350px);
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-gallery-card img{
    max-height:clamp(155px,28svh,360px)!important;
    object-fit:cover;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite > .znj-scroll-film{
    grid-column:2;grid-row:2;
    min-width:0;min-height:clamp(250px,48svh,570px)!important;
    height:auto!important;
    margin:0!important;
    border-radius:clamp(12px,2vw,30px)!important;
    overflow:hidden!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-film-stage{
    position:relative!important;
    height:100%!important;min-height:0!important;
    border-radius:inherit;overflow:hidden;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-film-copy{
    padding:clamp(16px,2vw,38px);
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite .znj-scroll-film-copy h2{
    font-size:clamp(28px,min(3.5vw,6svh),60px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-invite-grid{
    min-height:0!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-home-calendar .znj-home-published-head{
    padding-block:0!important;margin-bottom:6px!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-home-calendar .znj-home-published-head h2{
    font-size:clamp(28px,4svh,48px)!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-marketplace-invite .znj-home-calendar .znj-home-published-card{
    flex-basis:clamp(200px,25vw,330px)!important;
  }
}
@media(max-width:900px){
  body.znj-home .znj-mobile-home :is(.znj-m-cinema,.znj-m-footprint){
    gap:clamp(10px,2svh,20px)!important;
    justify-content:center!important;
  }
  body.znj-home .znj-mobile-home .znj-m-logo-rail{
    display:flex!important;align-items:stretch;gap:12px;
  }
  body.znj-home .znj-mobile-home .znj-m-logo-tile{
    flex:0 0 clamp(175px,61vw,280px);
    width:clamp(175px,61vw,280px);
    min-height:clamp(190px,34svh,330px);
    padding:18px;
    border:1px solid #b7a077;
    background:#f9f7f0;
    border-radius:18px;
    display:flex;flex-direction:column;
    justify-content:center;align-items:center;gap:20px;
    scroll-snap-align:start;
  }
  body.znj-home .znj-mobile-home .znj-m-logo-tile img{
    width:100%;height:auto;max-width:220px;max-height:120px;
    object-fit:contain!important;
  }
  body.znj-home .znj-mobile-home .znj-m-logo-tile :is(span,strong){
    color:#372b1d!important;
    text-align:center;
    font:700 12px/1.5 Manrope,Arial,sans-serif;
  }
  body.znj-home .znj-mobile-home .znj-m-footprint{
    background:#1c211b!important;
  }
  body.znj-home .znj-mobile-home .znj-m-cinema{
    background:#141b1a!important;
  }
}
@media(min-width:901px) and (max-width:1180px){
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite{
    grid-template-columns:minmax(0,1.1fr) minmax(275px,.9fr)!important;
  }
}

/* The two Selected Work features live beside one another as compact,
   readable landscape cards instead of taking two full-screen vertical rows. */
@media(min-width:901px){
  body.znj-home .znj-desktop-experience > section.zm-dark-band > .zm-wrap{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:clamp(12px,2vw,26px)!important;
    align-content:center;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-heading{
    grid-column:1/-1!important;
    margin-bottom:clamp(10px,2svh,25px)!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band > .zm-wrap > .zm-feature{
    grid-column:1!important;
    height:clamp(280px,46svh,550px)!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-work-archive-highlight{
    grid-column:2!important;
    min-width:0!important;
    margin:0!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-work-archive-highlight .zm-feature{
    min-height:0!important;
    height:clamp(280px,46svh,550px)!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    padding:0!important;margin:0!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature > img{
    min-height:0!important;
    width:100%;height:100%!important;
    object-fit:cover!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature-content{
    padding:clamp(13px,2vw,35px)!important;
    display:flex;flex-direction:column;align-items:flex-start;
    justify-content:center;min-width:0;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature-content h2{
    font-size:clamp(24px,min(2.6vw,5svh),47px)!important;
    overflow-wrap:break-word;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature-content p{
    font-size:clamp(11px,1vw,15px);line-height:1.55;
  }
  body.znj-home .znj-desktop-experience > section.znj-scroll-suite > .znj-scroll-gallery{
    overflow:visible!important;
  }
}
@media(min-width:901px) and (max-width:1100px){
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature-content{
    padding:12px!important;
  }
  body.znj-home .znj-desktop-experience > section.zm-dark-band .zm-feature-content h2{
    font-size:clamp(21px,2.2vw,32px)!important;
  }
}

/* Event Calendar is now its own full-viewport desktop sheet, separate
   from Marketplace. Published event photos remain exactly unchanged. */
@media(min-width:901px){
  body.znj-home .znj-desktop-experience > section.znj-desktop-event-calendar{
    min-height:var(--znj-vh)!important;
    padding:clamp(20px,4svh,65px) 0!important;
    justify-content:center!important;
    background:#17201c!important;
    color:#f7eee0!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-desktop-event-calendar > .zm-wrap{
    width:min(92vw,1500px);max-width:none!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-desktop-event-calendar .znj-home-published-head{
    display:grid!important;grid-template-columns:1.2fr .8fr;
    align-items:end;gap:clamp(20px,5vw,75px);
    margin-bottom:clamp(15px,3svh,40px)!important;
    padding-bottom:clamp(12px,2svh,30px)!important;
    border-bottom:1px solid rgba(232,192,127,.24);
  }
  body.znj-home .znj-desktop-experience > section.znj-desktop-event-calendar .znj-home-published-head h2{
    font-size:clamp(44px,min(6.5vw,10svh),113px)!important;
    line-height:1!important;letter-spacing:-.055em;
    color:#f8ecda!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-desktop-event-calendar .znj-home-published-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    gap:clamp(12px,2vw,28px)!important;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:8px;
    overscroll-behavior-inline:contain;
    padding:8px 8px 20px!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-desktop-event-calendar .znj-home-published-card{
    flex:0 0 clamp(260px,31vw,420px)!important;
    min-width:0;max-width:none;
    height:auto!important;max-height:none!important;
    background:#242622!important;
    border-radius:22px!important;
    scroll-snap-align:start;
  }
  body.znj-home .znj-desktop-experience > section.znj-desktop-event-calendar .znj-home-published-media{
    aspect-ratio:16/9!important;
  }
  body.znj-home .znj-desktop-experience > section.znj-desktop-event-calendar .znj-home-published-media img{
    width:100%;height:100%;object-fit:cover!important;
  }
}
