/*
 * ZNJ sheet performance pass — keep the editorial overlap and the 12%
 * reversible settle, but DO NOT re-rasterize an entire photographic chapter
 * on every wheel/touch scroll frame.
 *
 * Sticky layers, rounded incoming top edges, section hierarchy and native
 * vertical scrolling remain intact. Only costly full-section scale/translate
 * motion and perpetual decorative particle movement are simplified.
 */
@media (min-width:901px) {
  body.znj-home.znj-stack-enhanced .znj-desktop-experience.znj-stack-home > section.znj-stack-sheet {
    scale:1!important;
    translate:none!important;
    backface-visibility:visible!important;
    will-change:auto!important;
    outline:0!important;
    transition:none!important;
    /* Never apply a full-viewport blur/filter during a chapter change. */
    filter:none!important;
  }
  body.znj-home.znj-stack-enhanced .znj-desktop-experience.znj-stack-home > section.znj-stack-sheet + section.znj-stack-sheet {
    box-shadow:0 -7px 23px rgba(0,0,0,.19),0 -1px 0 rgba(236,194,122,.24)!important;
  }
  body.znj-expertise .znj-exp-desktop > section.znj-exp-sheet {
    scale:1!important;
    translate:none!important;
    backface-visibility:visible!important;
    will-change:auto!important;
    transition:none!important;
  }
}
@media (max-width:900px) {
  body.znj-home .znj-mobile-home > section.znj-m-panel,
  body.znj-expertise .znj-exp-mobile > section.znj-exp-m-sheet {
    scale:1!important;
    translate:none!important;
    backface-visibility:visible!important;
    will-change:auto!important;
    transition:none!important;
  }
}
/* Static motifs still decorate the artboards. Repeated animated shadows
 * and floating layers across many sticky sheets were adding paint work. */
body.znj-home .znj-luxury-motif,
body.znj-expertise .znj-luxury-motif {
  animation:none!important;
  filter:none!important;
  will-change:auto!important;
}
/* Preserve all small interactive feedback (cards, chevrons, buttons).
   Respect reduced-motion users without disabling keyboard/navigation. */
@media(prefers-reduced-motion:reduce){
  body.znj-home .znj-desktop-experience.znj-stack-home > section,
  body.znj-home .znj-mobile-home > section,
  body.znj-expertise .znj-exp-desktop > section,
  body.znj-expertise .znj-exp-mobile > section{
    scroll-behavior:auto!important;
  }
}

/* Mobile: no previous/next panel preview. Full-screen short chapters,
   content-driven height for longer chapters; do not clip readable content. */
@media(max-width:900px){
 body.znj-home .znj-mobile-home > section.znj-m-panel{
   margin-top:0!important;
   margin-bottom:0!important;
   border-radius:0!important;
   min-height:100svh;
   max-height:none!important;
 }
 body.znj-home .znj-mobile-home > section.znj-m-panel + section.znj-m-panel{
   margin-top:0!important;
   box-shadow:none!important;
 }
}

/* Mobile sheet stepper: fixed, accessible and clear of the bottom dock. */
.znj-mobile-sheet-steps{display:none}
@media(max-width:900px){
 body.znj-home .znj-back-top.znj-mobile-back-top-replaced{display:none!important}
 body.znj-home .znj-mobile-sheet-steps{
  display:flex;align-items:center;gap:7px;position:fixed;right:14px;
  bottom:calc(86px + env(safe-area-inset-bottom,0px));z-index:240;
  padding:6px;background:rgba(18,19,17,.94);color:#f7e9d0;
  border:1px solid rgba(218,177,108,.55);border-radius:999px;
  box-shadow:0 8px 28px rgba(0,0,0,.32);backdrop-filter:blur(10px)
 }
 body.znj-home .znj-mobile-sheet-steps button{
  display:grid;place-items:center;width:42px;height:42px;border-radius:50%;
  border:1px solid rgba(218,177,108,.4);background:#29251f;
  color:#f7e9d0;font-size:24px;line-height:1;touch-action:manipulation;
 }
 body.znj-home .znj-mobile-sheet-steps button:disabled{opacity:.28}
 body.znj-home .znj-mobile-sheet-position{font:600 11px/1.2 system-ui,sans-serif;min-width:36px;text-align:center}
}

/* Minimal two-arrow mobile sheet navigation, without a section counter. */
@media(max-width:900px){body.znj-home .znj-mobile-sheet-steps{gap:3px!important;padding:4px!important}body.znj-home .znj-mobile-sheet-steps button{width:38px!important;height:38px!important}}

/* Mobile hero: keep headline and CTA fully visible above the fixed dock.
   Do not crop the image or hide actions behind the sheet controls. */
@media(max-width:900px){
 body.znj-home .znj-mobile-home > section.znj-m-hero{
  min-height:max(100svh,760px)!important;
  height:auto!important;
  justify-content:flex-end!important;
  padding-top:clamp(28px,5svh,55px)!important;
  padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))!important;
  overflow:visible!important;
 }
 body.znj-home .znj-mobile-home > section.znj-m-hero .znj-m-panel-content{
  width:100%!important;
  max-width:100%!important;
  padding-inline:clamp(18px,5vw,32px)!important;
  padding-bottom:12px!important;
  margin:0!important;
  box-sizing:border-box;
 }
 body.znj-home .znj-mobile-home > section.znj-m-hero h1{
  font-size:clamp(43px,11.5vw,70px)!important;
  line-height:1.02!important;
  letter-spacing:-.055em!important;
  overflow-wrap:normal!important;
 }
 body.znj-home .znj-mobile-home > section.znj-m-hero .zm-actions,
 body.znj-home .znj-mobile-home > section.znj-m-hero .znj-m-actions{
  position:relative!important;
  z-index:4!important;
  margin-bottom:12px!important;
 }
 body.znj-home .znj-mobile-sheet-steps button:disabled{opacity:.26!important;cursor:default}
}

/* Mobile homepage masthead must remain pinned while changing sheets. */
@media(max-width:900px){
 html body.znj-home .site-head{
  position:fixed!important;top:0!important;left:0!important;right:0!important;
  inset:0 0 auto 0!important;transform:none!important;
  margin:0!important;width:100%!important;z-index:990!important;
 }
 body.znj-home .znj-mobile-home > section.znj-m-hero{
  padding-top:max(125px,calc(var(--znj-header-live-height,90px) + 24px))!important;
 }
 body.znj-home .znj-mobile-sheet-steps{z-index:995!important}
}

/* Compact mobile layout: no global header-sized top padding or giant
   bottom spacer. Only the floating controls need a small local clear zone. */
@media(max-width:900px){
 body.znj-home .znj-mobile-home > section.znj-m-panel{
  box-sizing:border-box!important;
  scroll-margin-top:var(--znj-header-live-height,90px)!important;
  padding-top:clamp(18px,3svh,32px)!important;
  padding-bottom:clamp(22px,4svh,44px)!important;
  min-height:100svh!important;
  height:auto!important;
 }
 body.znj-home .znj-mobile-home > section.znj-m-panel.znj-m-hero{
  padding-top:clamp(18px,3svh,32px)!important;
  padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
 }
 body.znj-home .znj-mobile-sheet-steps{
  bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
  right:10px!important;
  padding:3px!important;
  gap:2px!important;
 }
 body.znj-home .znj-mobile-sheet-steps button{
  width:35px!important;height:35px!important;font-size:21px!important;
 }
 /* Reserve horizontal room for the arrows only where footer links share
    the same vertical strip; do not push entire chapters off screen. */
 body.znj-home .znj-mobile-home .znj-m-carousel-footer{
  padding-right:90px!important;
  min-height:48px;
 }
}

/* Mobile viewport contract: content lives BETWEEN the fixed header and dock.
   Do not use header-height padding on every panel: the sticky top already
   reserves that space. Tall chapters grow naturally, keeping CTAs reachable. */
@media(max-width:900px){
 html body.znj-home{
  --znj-safe-head:var(--znj-m-document-header,var(--znj-header-live-height,90px));
  --znj-safe-dock:var(--znj-mobile-dock-height,82px);
 }
 html body.znj-home .znj-mobile-home > section.znj-m-panel{
  top:var(--znj-safe-head)!important;
  min-height:max(280px,calc(100svh - var(--znj-safe-head) - var(--znj-safe-dock)))!important;
  padding-top:clamp(12px,2svh,22px)!important;
  padding-bottom:clamp(18px,3svh,30px)!important;
  scroll-margin-top:var(--znj-safe-head)!important;
  box-sizing:border-box!important;
  height:auto!important;
 }
 html body.znj-home .znj-mobile-home > section.znj-m-hero{
  min-height:max(360px,calc(100svh - var(--znj-safe-head) - var(--znj-safe-dock)))!important;
  padding-top:clamp(12px,2svh,22px)!important;
  padding-bottom:clamp(20px,3svh,32px)!important;
 }
 /* Avoid vertically centering oversized chapters: content must start below
    the masthead rather than pushing its headline off the top edge. */
 html body.znj-home .znj-mobile-home > section.znj-m-panel:not(.znj-m-hero){
  justify-content:flex-start!important;
 }
 /* Keep arrow controls immediately above the dock without enlarging sheets. */
 html body.znj-home .znj-mobile-sheet-steps{
  bottom:calc(var(--znj-safe-dock) + 7px + env(safe-area-inset-bottom,0px))!important;
  right:9px!important;
 }
 html body.znj-home .znj-mobile-home .znj-m-carousel-footer{
  padding-right:86px!important;
 }
}
