/* Bornwiz Hero Enfilade 1.0.0 — haut de l'accueil, toujours sombre. Neutralise les styles de l'ancien .bw-hero et masque la navigation pendant l'intro. */
body .bw-studio .bw-hero.bwh,
body .bw-hero.bwh {
  display: block !important;
  position: relative !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  overflow: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  border: 0 !important;
}
body .bw-studio .bw-hero.bwh::before,
body .bw-studio .bw-hero.bwh::after { content: none !important; display: none !important; }

.bwh__track { position: relative; height: 260vh; height: 260svh; }
.bwh__stage { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #161415 !important; color: #f5f1e6; isolation: isolate; color-scheme: dark; }
.bwh__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.bwh__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 62% 48% at 50% 54%, rgba(22,20,21,.86) 0%, rgba(22,20,21,.86) 42%, rgba(22,20,21,0) 100%); }
.bwh__mark { position: absolute; left: 50%; top: 50%; z-index: 3; width: min(62vw, 740px); transform: translate(-50%, -50%); transform-origin: 50% 50%; will-change: transform, opacity; pointer-events: none; }
.bwh__mark img { display: block; width: 100% !important; height: auto !important; max-width: none !important; }

html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; margin: 0; padding: 72px max(16px, env(safe-area-inset-right, 0px)) 112px max(16px, env(safe-area-inset-left, 0px)); text-align: center; pointer-events: none; }
.bwh__rv { opacity: 0; transform: translateY(28px); }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__kicker { display: inline-flex; align-items: center; gap: .65em; margin: 0; padding: 0; font-size: .95rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #c9c2bd !important; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8f7cff; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__title { margin: 0 !important; padding: 0 !important; max-width: 19ch; font-size: clamp(2.1rem, 4.9vw, 4.5rem) !important; font-weight: 650 !important; line-height: 1.04 !important; letter-spacing: -.03em !important; text-wrap: balance; color: #f5f1e6 !important; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__lead { margin: 0 !important; padding: 0 !important; max-width: 54ch; font-size: clamp(1rem, 1.25vw, 1.13rem) !important; line-height: 1.6 !important; color: #c9c2bd !important; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 6px 0 0; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px !important; border-radius: 999px; font-size: 1rem !important; font-weight: 500; line-height: 1 !important; text-decoration: none !important; box-shadow: none; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__btn--p { background: #644cf4 !important; color: #ffffff !important; border: 1px solid #644cf4 !important; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__btn--p:hover { background: #5035dc !important; transform: translateY(-1px); }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__btn--s { background: transparent !important; color: #f5f1e6 !important; border: 1px solid rgba(245,241,230,.38) !important; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__btn--s:hover { border-color: #f5f1e6 !important; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__proof { display: inline-flex; align-items: center; gap: .55em; margin: 4px 0 0; font-size: .9rem !important; font-weight: 500; line-height: 1.4; color: #c9c2bd !important; text-decoration: none !important; border: 0 !important; background: none !important; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__proof:hover { color: #f5f1e6 !important; text-decoration: underline !important; text-underline-offset: 3px; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__proof span { color: #e3a21a !important; letter-spacing: .12em; }
html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh :is(.bwh__btn, .bwh__proof, .bwh__arrow):focus-visible { outline: 2px solid #b9aaff !important; outline-offset: 4px; }

html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__arrow { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 4; display: grid; place-items: center; width: 48px; height: 76px; margin: 0; padding: 0; transform: translateX(-50%); border: 0 !important; border-radius: 24px; background: none !important; box-shadow: none !important; color: #f5f1e6 !important; cursor: pointer; }
.bwh__arrow svg { width: 18px; height: 58px; overflow: visible; stroke-width: 1.75; }
.bwh__track-line { opacity: .22; }
.bwh__shaft { stroke-dasharray: 50; animation: bwh-shaft 2.6s cubic-bezier(.65,0,.25,1) infinite; }
.bwh__head { animation: bwh-head 2.6s cubic-bezier(.65,0,.25,1) infinite; }
@keyframes bwh-shaft { 0% { stroke-dashoffset: 50; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -50; } }
@keyframes bwh-head { 0%, 30% { transform: translateY(-3px); } 50%, 72% { transform: none; } 100% { transform: translateY(-3px); } }

/* Passage du hero sombre à la suite de la page, sans trait */
.bwh__fade { height: clamp(140px, 24vh, 240px); background: linear-gradient(#161415, rgba(22,20,21,0)); pointer-events: none; }

/* Navigation masquée pendant l'intro (logo seul) */
html.bwh-intro .bw-bottom-nav-wrapper,
html.bwh-intro .bw-mob-notch,
html.bwh-intro .bw-mob-tabbar { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

@media (max-width: 640px) {
  .bwh__mark { width: 80vw; }
  html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__content { gap: 16px; padding-top: 76px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  html:not(#bwh-a):not(#bwh-b):not(#bwh-c):not(#bwh-d) .bwh .bwh__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .bwh__scrim { background: radial-gradient(ellipse 120% 52% at 50% 52%, rgba(22,20,21,.86) 0%, rgba(22,20,21,.86) 58%, rgba(22,20,21,0) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .bwh__shaft, .bwh__head { animation: none; }
  .bwh__shaft { stroke-dasharray: none; }
}
