/* Maison Bebe storefront experience 2026
   Editorial, mobile-first motion layer. No navigation or scroll hijacking. */

.home-hero-v5.hero.home-shell{
  --hero-shift:0px;
  position:relative;
  isolation:isolate;
  display:block;
  width:100%;
  max-width:none;
  height:clamp(650px,calc(100svh - 115px),850px);
  min-height:650px;
  max-height:850px;
  overflow:hidden;
  background:#e9dfd5;
}
.home-hero-v5 .hero-image{
  position:absolute;
  inset:-3% 0;
  z-index:0;
  width:100%;
  height:106%;
  min-height:0;
  overflow:hidden;
  background-image:var(--hero-bg);
  background-size:cover;
  background-position:center 48%;
  background-repeat:no-repeat;
  background-attachment:scroll;
  transform:translate3d(0,var(--hero-shift),0) scale(1.025);
  will-change:transform;
}
.home-hero-v5 .hero-image::before{display:none}
.home-hero-v5 .hero-image img{display:none}
.home-hero-v5 .hero-scrim{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(248,243,237,.90) 0%,rgba(248,243,237,.72) 33%,rgba(248,243,237,.14) 60%,rgba(248,243,237,0) 79%),
    linear-gradient(180deg,rgba(48,34,27,.03),transparent 42%,rgba(48,34,27,.11));
}
.home-hero-v5 .hero-copy{
  position:relative;
  z-index:3;
  width:min(650px,44vw);
  height:calc(100% - 82px);
  margin-left:clamp(38px,5.2vw,100px);
  padding:clamp(34px,4vw,64px) clamp(32px,3.8vw,62px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  align-self:auto;
  background:rgba(255,252,248,.76);
  border:1px solid rgba(145,112,91,.22);
  border-top:0;
  border-radius:0 0 76px 4px;
  box-shadow:0 32px 90px rgba(67,45,34,.12);
  backdrop-filter:blur(16px) saturate(1.04);
  -webkit-backdrop-filter:blur(16px) saturate(1.04);
}
.home-hero-v5 .hero-copy::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:76px;
  height:76px;
  border-left:1px solid rgba(145,112,91,.2);
  border-bottom:1px solid rgba(145,112,91,.2);
  border-radius:0 0 0 76px;
  pointer-events:none;
}
.home-hero-v5 .hero-edition{
  display:flex;
  align-items:center;
  gap:13px;
  margin:0 0 clamp(26px,3.3vh,38px);
  color:var(--brown-dark);
}
.home-hero-v5 .hero-edition>span{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  flex:0 0 38px;
  border:1px solid rgba(118,88,71,.38);
  border-radius:50%;
  font:600 9px/1 var(--sans);
  letter-spacing:.08em;
}
.home-hero-v5 .hero-edition p,
.home-hero-v5 .hero-proof p{margin:0}
.home-hero-v5 .hero-edition small,
.home-hero-v5 .hero-edition strong{display:block}
.home-hero-v5 .hero-edition small{
  margin-bottom:3px;
  font:500 8px/1 var(--sans);
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}
.home-hero-v5 .hero-edition strong{
  font:500 15px/1.15 var(--serif);
  color:var(--ink);
}
.home-hero-v5 .hero-copy>.eyebrow{
  margin:0 0 14px;
  font-size:9px;
  line-height:1.4;
  letter-spacing:.26em;
  color:var(--brown-dark);
}
.home-hero-v5 .hero-copy h1{
  max-width:570px;
  margin:0 0 24px;
  font-size:clamp(52px,4.4vw,76px);
  line-height:.96;
  letter-spacing:-.038em;
  text-wrap:balance;
}
.home-hero-v5 .hero-copy>.hero-lead{
  display:block;
  max-width:510px;
  margin:0 0 27px;
  color:#675a52;
  font-size:clamp(13px,.95vw,16px);
  line-height:1.75;
  text-wrap:pretty;
}
.home-hero-v5 .hero-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 20px;
}
.home-hero-v5 .hero-actions .button{
  min-height:52px;
  margin:0;
  padding:13px 21px 13px 24px;
  gap:18px;
  font-size:10px;
  box-shadow:0 14px 30px rgba(118,88,71,.19);
}
.home-hero-v5 .hero-primary svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  transition:transform .28s ease;
}
.home-hero-v5 .hero-secondary{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 4px;
  border-bottom:1px solid rgba(118,88,71,.4);
  color:var(--ink);
  font:600 9px/1 var(--sans);
  letter-spacing:.09em;
  text-transform:uppercase;
}
.home-hero-v5 .hero-secondary span{font-size:16px;line-height:1}
.home-hero-v5 .hero-proof{
  display:flex;
  align-items:center;
  gap:23px;
  margin-top:clamp(25px,3.5vh,38px);
  padding-top:20px;
  border-top:1px solid rgba(118,88,71,.18);
}
.home-hero-v5 .hero-proof p{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.home-hero-v5 .hero-proof i{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  flex:0 0 24px;
  border:1px solid rgba(118,88,71,.26);
  border-radius:50%;
  color:var(--brown-dark);
  font:600 10px/1 var(--sans);
  font-style:normal;
}
.home-hero-v5 .hero-proof strong,
.home-hero-v5 .hero-proof small{display:block;white-space:nowrap}
.home-hero-v5 .hero-proof strong{
  font:600 9px/1.25 var(--sans);
  letter-spacing:.035em;
  text-transform:uppercase;
}
.home-hero-v5 .hero-proof small{
  margin-top:3px;
  color:var(--muted);
  font:400 8px/1.25 var(--sans);
}
.home-hero-v5 .hero-scroll-cue{
  position:absolute;
  z-index:4;
  right:clamp(28px,3.8vw,72px);
  bottom:30px;
  display:flex;
  align-items:center;
  gap:13px;
  color:#fff;
  filter:drop-shadow(0 1px 6px rgba(45,30,23,.38));
  font:600 8px/1 var(--sans);
  letter-spacing:.18em;
  text-transform:uppercase;
}
.home-hero-v5 .hero-scroll-cue i{
  position:relative;
  width:44px;
  height:1px;
  overflow:hidden;
  background:rgba(255,255,255,.42);
}
.home-hero-v5 .hero-scroll-cue i::after{
  content:"";
  position:absolute;
  inset:0;
  background:#fff;
  transform:translateX(-110%);
  animation:hero-scroll-line 2.1s ease-in-out infinite;
}
@keyframes hero-scroll-line{
  0%,18%{transform:translateX(-110%)}
  62%,100%{transform:translateX(110%)}
}
@keyframes hero-copy-in{
  from{opacity:0;transform:translate3d(-24px,18px,0)}
  to{opacity:1;transform:none}
}
@keyframes hero-image-in{
  from{filter:saturate(.75);transform:translate3d(0,var(--hero-shift),0) scale(1.075)}
  to{filter:saturate(1);transform:translate3d(0,var(--hero-shift),0) scale(1.025)}
}
@media (prefers-reduced-motion:no-preference){
  .home-hero-v5 .hero-copy{animation:hero-copy-in .9s cubic-bezier(.2,.72,.22,1) both}
  .home-hero-v5 .hero-image{animation:hero-image-in 1.4s cubic-bezier(.2,.72,.22,1) both}
}
@media (hover:hover) and (pointer:fine){
  .home-hero-v5 .hero-primary:hover svg{transform:translateX(4px)}
  .home-hero-v5 .hero-secondary:hover{color:var(--brown-dark);border-color:var(--brown-dark)}
  .home-hero-v5 .hero-scroll-cue:hover{transform:translateY(-2px)}
}

/* A softer handoff from first impact to the catalog story. */
.home-hero-v5 + .benefits{
  position:relative;
  z-index:8;
  margin-top:-1px;
  box-shadow:0 18px 48px rgba(74,55,45,.06);
}
.home-brand-story,
.home-collections,
.atelier-preview,
.newsletter,
.home-gift-story,
main>.section-space{scroll-margin-top:105px}
.home-collections .section-heading,
main>.section-space .section-heading{position:relative}
.home-collections .section-heading::after,
main>.section-space .section-heading::after{
  content:"";
  display:block;
  width:42px;
  height:1px;
  margin:18px auto 0;
  background:linear-gradient(90deg,transparent,var(--brown),transparent);
}
main>.section-space .section-heading:not(.centered)::after{margin-left:0}
.product-card,
.article-card,
.collection-chip,
.home-story-chapter{touch-action:manipulation}
.product-card{
  transition:transform .38s cubic-bezier(.2,.72,.22,1),box-shadow .38s ease;
}
.product-media{overflow:hidden}
.product-media img{transition:transform .75s cubic-bezier(.2,.72,.22,1)}
.article-card img{transition:transform .75s cubic-bezier(.2,.72,.22,1)}
@media (hover:hover) and (pointer:fine){
  .product-card:hover{transform:translateY(-7px);box-shadow:0 23px 60px rgba(65,45,35,.10)}
  .product-card:hover .product-media img,
  .article-card:hover img{transform:scale(1.035)}
}

/* Reveal only after JS opts in; content remains visible if JS is unavailable. */
html.storefront-motion [data-reveal]{
  opacity:0;
  transform:translate3d(0,24px,0);
  transition:opacity .72s ease,transform .72s cubic-bezier(.2,.72,.22,1);
  transition-delay:var(--reveal-delay,0ms);
}
html.storefront-motion [data-reveal="left"]{transform:translate3d(-28px,18px,0)}
html.storefront-motion [data-reveal="right"]{transform:translate3d(28px,18px,0)}
html.storefront-motion [data-reveal].is-visible{opacity:1;transform:none}

@media(max-width:900px){
  .home-hero-v5.hero.home-shell{
    height:clamp(650px,calc(100svh - 88px),790px);
    min-height:650px;
    max-height:790px;
  }
  .home-hero-v5 .hero-image{
    inset:-2% 0;
    width:100%;
    height:104%;
    background-position:78% center;
    transform:translate3d(0,var(--hero-shift),0) scale(1.04);
  }
  .home-hero-v5 .hero-scrim{
    background:
      linear-gradient(180deg,rgba(52,35,27,.02) 0%,rgba(52,35,27,.02) 38%,rgba(52,35,27,.4) 100%),
      linear-gradient(90deg,rgba(255,250,244,.10),transparent 65%);
  }
  .home-hero-v5 .hero-copy{
    position:absolute;
    inset:auto 18px 38px;
    width:auto;
    height:auto;
    min-height:0;
    margin:0;
    padding:25px 25px 23px;
    justify-content:flex-start;
    background:rgba(255,252,248,.88);
    border:1px solid rgba(255,255,255,.6);
    border-radius:4px 42px 4px 4px;
    box-shadow:0 24px 68px rgba(44,29,23,.24);
    backdrop-filter:blur(15px) saturate(1.08);
    -webkit-backdrop-filter:blur(15px) saturate(1.08);
  }
  .home-hero-v5 .hero-copy::after{width:46px;height:46px;border-radius:0 0 0 46px}
  .home-hero-v5 .hero-edition{display:none}
  .home-hero-v5 .hero-copy>.eyebrow{
    display:block;
    margin-bottom:10px;
    font-size:7px;
    letter-spacing:.21em;
  }
  .home-hero-v5 .hero-copy h1{
    max-width:430px;
    margin-bottom:14px;
    font-size:clamp(32px,9vw,44px);
    line-height:.98;
  }
  .home-hero-v5 .hero-copy>.hero-lead{
    display:block;
    max-width:390px;
    margin-bottom:17px;
    font-size:11px;
    line-height:1.62;
  }
  .home-hero-v5 .hero-actions{gap:8px 15px}
  .home-hero-v5 .hero-actions .button{
    min-height:48px;
    padding:12px 16px 12px 18px;
    font-size:8px;
  }
  .home-hero-v5 .hero-primary svg{width:18px;height:18px}
  .home-hero-v5 .hero-secondary{min-height:44px;font-size:8px}
  .home-hero-v5 .hero-proof{gap:16px;margin-top:17px;padding-top:15px}
  .home-hero-v5 .hero-proof i{width:22px;height:22px;flex-basis:22px}
  .home-hero-v5 .hero-proof strong{font-size:7px}
  .home-hero-v5 .hero-proof small{font-size:7px}
  .home-hero-v5 .hero-scroll-cue{
    right:18px;
    bottom:14px;
    gap:9px;
    font-size:7px;
  }
  .home-hero-v5 .hero-scroll-cue i{width:30px}
}
@media(max-width:560px){
  .home-hero-v5.hero.home-shell{
    width:100%;
    height:clamp(600px,calc(100svh - 86px),760px);
    min-height:600px;
    max-height:760px;
    overflow:hidden;
  }
  .home-hero-v5 .hero-image{
    position:absolute;
    inset:-2% 0;
    height:104%;
    min-height:0;
    background-size:cover;
    background-position:78% center;
  }
  .home-hero-v5 .hero-copy{
    position:absolute;
    inset:auto 12px 35px;
    width:auto;
    min-height:0;
    height:auto;
    padding:20px 19px 18px;
    background:rgba(255,252,248,.90);
    border-radius:3px 34px 3px 3px;
  }
  .home-hero-v5 .hero-copy>.eyebrow{display:block;margin-bottom:8px;font-size:6.5px}
  .home-hero-v5 .hero-copy h1{
    max-width:355px;
    margin:0 0 12px;
    font-size:clamp(30px,8.8vw,38px);
    line-height:.98;
  }
  .home-hero-v5 .hero-copy>.hero-lead{
    display:block;
    max-width:330px;
    margin:0 0 14px;
    font-size:10px;
    line-height:1.55;
  }
  .home-hero-v5 .hero-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:9px}
  .home-hero-v5 .hero-actions .button{
    width:100%;
    min-height:48px;
    justify-content:space-between;
  }
  .home-hero-v5 .hero-secondary{padding-inline:2px;white-space:nowrap}
  .home-hero-v5 .hero-proof{justify-content:space-between;gap:7px}
  .home-hero-v5 .hero-proof p{gap:6px}
  .home-hero-v5 .hero-proof strong{white-space:normal}
  .home-hero-v5 .hero-proof small{display:none}
  .home-hero-v5 .hero-scroll-cue{bottom:11px}
  .home-hero-v5 + .benefits{display:none}
  .home-collections .collection-rail,
  .article-grid{
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }
  .product-card-actions .wishlist-toggle,
  .quick-cart-toggle,
  .icon-button{touch-action:manipulation}
}
@media(max-width:380px){
  .home-hero-v5 .hero-copy{inset-inline:9px;padding-inline:16px}
  .home-hero-v5 .hero-copy h1{font-size:29px}
  .home-hero-v5 .hero-copy>.hero-lead{font-size:9px}
  .home-hero-v5 .hero-secondary{display:none}
  .home-hero-v5 .hero-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .home-hero-v5 .hero-image{transform:none!important;will-change:auto}
  .home-hero-v5 .hero-scroll-cue i::after{animation:none;transform:none}
  html.storefront-motion [data-reveal]{opacity:1;transform:none;transition:none}
}

/* Shared storefront ergonomics: large touch targets and crisp keyboard focus. */
:where(a,button,input,select,textarea,summary){-webkit-tap-highlight-color:rgba(148,115,95,.16)}
:where(a,button,summary){touch-action:manipulation}
:where(a,button,input,select,textarea,summary):focus-visible{
  outline:2px solid var(--brown);
  outline-offset:3px;
}
@media(max-width:760px){
  main .button,
  main button:not(.icon-button):not(.modal-close),
  .modal-close{min-height:48px}
  .modal-close{width:48px;height:48px;display:grid;place-items:center;right:5px;top:4px}
  .product-accordions summary{min-height:48px;display:flex;align-items:center}
  .site-footer a{min-height:36px;display:flex;align-items:center}
  input:not([type=checkbox]):not([type=radio]),
  select,
  textarea{font-size:16px}
}
@media(max-width:560px){
  .home-hero-v5 .hero-scroll-cue{
    left:50%;
    right:auto;
    bottom:10px;
    width:max-content;
    transform:translateX(-50%);
    font-size:6.5px;
  }
}