/* ============================================================================
   Age Limit — VERSION B · BOLD Nécessaire-led layer (home-led, additive).
   Loads AFTER site.css. Deliberately overrides the shared dark-video hero with
   a white, editorial, oversized-type experience so B reads OBVIOUSLY different
   from A within 5 seconds — on load and on scroll.
   All motion is GPU transform/opacity only (no layout shift) and every piece
   has a prefers-reduced-motion fallback at the bottom of this file.
   ============================================================================ */

:root{
  --b-ease: cubic-bezier(.16,.84,.3,1);      /* Emil-grade decelerate-out  */
  --b-ease-io: cubic-bezier(.65,0,.35,1);    /* in-out for pins            */
  --b-giant: clamp(68px, 16vw, 280px);       /* story headline scale       */
  --b-mega:  clamp(52px, 11.5vw, 190px);     /* hero headline scale        */
}

/* mark the bold home so overrides are scoped and never leak to other pages */
body.bold-home{background:var(--paper);color:var(--ink)}

/* ---------------------------------------------------------------------------
   1 · CINEMATIC HERO  (white paper · oversized Fraunces · Three.js refraction
   jar · mouse-driven depth / Genjutsu parallax layers)
   --------------------------------------------------------------------------- */
.b-hero{
  position:relative; background:var(--paper); color:var(--ink);
  min-height:100svh; display:flex; flex-direction:column; justify-content:center;
  /* B2 fix (Xpensiv medium: excessive whitespace above the fold) — tighten the
     hero top padding so the value proposition sits closer to the viewport top */
  padding:clamp(48px,7vh,96px) var(--pad) clamp(40px,7vh,88px);
  overflow:hidden; isolation:isolate;
}
/* the Three.js canvas — the refractive "jar/cell", floating right-of-centre */
.b-hero-stage{position:absolute; inset:0; z-index:0; pointer-events:none}
.b-hero-stage canvas{position:absolute; inset:0; width:100%; height:100%}

/* soft paper vignette + faint grain, behind type, in front of canvas edges */
.b-hero::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(120% 90% at 78% 36%, rgba(243,241,236,0) 40%, rgba(243,241,236,.55) 100%),
    linear-gradient(180deg, rgba(255,255,255,.0) 60%, rgba(255,255,255,.9) 100%);
}

.b-hero-in{position:relative; z-index:2; max-width:var(--maxw); margin:0 auto; width:100%}
.b-hero .eyebrow{color:var(--muted); margin-bottom:clamp(18px,3vh,30px)}

/* giant editorial headline — each word masked, rises on load */
.b-hd{
  font-family:var(--display); font-weight:400; font-style:normal;
  font-size:var(--b-mega); line-height:.92; letter-spacing:-.03em;
  margin:0; color:var(--ink); text-wrap:balance;
}
.b-hd .it{font-style:italic}
.b-hd .line{display:block; overflow:hidden; padding-bottom:.04em}
.b-hd .line > span{display:block; will-change:transform}

.b-hero-foot{
  /* B2 fix (Xpensiv medium: desktop CTA alignment splits visual flow) —
     stack lede + CTAs on the left edge of the content column so the eye follows
     one unified reading path instead of jumping to far-right buttons */
  display:flex; flex-direction:column; align-items:flex-start; gap:clamp(20px,3vh,32px);
  flex-wrap:wrap; margin-top:clamp(28px,5vh,56px);
}
.b-hero-foot .lede{max-width:360px; color:var(--muted); font-size:clamp(15px,1.3vw,18px); line-height:1.55}
.b-hero-foot .row{display:flex; gap:12px; flex-wrap:wrap}

/* scroll cue */
.b-cue{position:absolute; left:50%; bottom:22px; z-index:2; transform:translateX(-50%);
  font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--muted);
  display:flex; flex-direction:column; align-items:center; gap:8px}
.b-cue i{display:block; width:1px; height:34px; background:var(--ink); opacity:.4; transform-origin:top;
  animation:bcue 1.8s var(--b-ease-io) infinite}
@keyframes bcue{0%{transform:scaleY(0)}40%{transform:scaleY(1)}100%{transform:scaleY(0);transform-origin:bottom}}

/* ---------------------------------------------------------------------------
   2 · FULL-VIEWPORT PINNED SCROLL STORY  (giant type scale/track/swap + marquee)
   --------------------------------------------------------------------------- */
.b-story{position:relative; background:var(--ink); color:var(--paper)}
.b-story .b-stage{
  position:relative; height:100svh; display:flex; align-items:center; justify-content:center;
  overflow:hidden; text-align:center;
}
.b-scene{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  padding:0 var(--pad); will-change:transform,opacity; opacity:0;
}
.b-scene .word{
  font-family:var(--display); font-weight:400; line-height:.9; letter-spacing:-.03em;
  font-size:var(--b-giant); color:var(--paper); will-change:transform;
}
.b-scene .word .it{font-style:italic}
.b-scene.sub .tag{display:block; font-family:var(--sans); font-weight:500;
  font-size:clamp(12px,1vw,14px); letter-spacing:.22em; text-transform:uppercase;
  color:var(--muted-d); margin-bottom:22px}

/* horizontal type marquee scene */
.b-marquee{position:absolute; inset:0; display:flex; align-items:center; overflow:hidden; opacity:0}
.b-marquee .track{display:flex; gap:.4em; white-space:nowrap; will-change:transform}
.b-marquee .track span{
  font-family:var(--display); font-style:italic; font-weight:400;
  font-size:var(--b-giant); line-height:1; letter-spacing:-.02em; color:var(--paper);
}
.b-marquee .track span:nth-child(2n){-webkit-text-stroke:1.2px var(--paper); color:transparent}

/* progress rail */
.b-rail{position:absolute; left:var(--pad); bottom:30px; right:var(--pad); z-index:3;
  height:1px; background:rgba(255,255,255,.18)}
.b-rail i{display:block; height:100%; background:var(--paper); transform:scaleX(0); transform-origin:left}
.b-rail-n{position:absolute; left:var(--pad); top:28px; z-index:3; font-size:12px;
  letter-spacing:.2em; color:var(--muted-d)}

/* ---------------------------------------------------------------------------
   3 · PRODUCT-REVEAL MOMENT  (pinned product zoom/rotate · ingredient callouts
   draw in · Lottie tick on add)
   --------------------------------------------------------------------------- */
.b-reveal{position:relative; background:var(--paper)}
.b-reveal .b-stage{position:relative; height:100svh; display:flex; align-items:center;
  justify-content:center; overflow:hidden}
.b-reveal .stagehd{position:absolute; top:clamp(40px,7vh,88px); left:0; right:0; text-align:center; z-index:1}
.b-reveal .stagehd .eyebrow{color:var(--muted); margin:0}
.b-reveal .stagehd h2{font-size:clamp(26px,3vw,44px); margin-top:8px}

.b-prod{position:relative; width:min(62vw,560px); aspect-ratio:4/5; will-change:transform}
.b-prod img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  background:var(--tile); box-shadow:0 40px 120px -40px rgba(13,13,13,.4)}

/* callouts: thin line + label, draw in on scrub */
.b-call{position:absolute; z-index:2; display:flex; align-items:center; gap:10px;
  font-size:13px; opacity:0; will-change:transform,opacity}
.b-call .dot{width:7px; height:7px; border-radius:50%; background:var(--ink); flex:none}
.b-call .ln{height:1px; background:var(--ink); width:0; transform-origin:left}
.b-call .lbl{white-space:nowrap}
.b-call .lbl b{display:block; font-weight:600; font-size:14px}
.b-call .lbl span{color:var(--muted); font-size:12px}
.b-call.left{flex-direction:row-reverse; text-align:right}
.b-call.left .ln{transform-origin:right}
.b-call.left .lbl{text-align:right}
.b-call.c1{top:16%; left:62%}
.b-call.c2{top:46%; left:66%}
.b-call.c3{top:74%; left:60%}
.b-call.c4{top:30%; left:10%}
.b-call.c5{top:62%; left:8%}

.b-reveal .cta{position:absolute; bottom:clamp(36px,7vh,80px); left:0; right:0; text-align:center; z-index:3}
.b-reveal .cta .tick{display:inline-flex; width:24px; height:24px; vertical-align:middle; margin-left:2px}

/* ---------------------------------------------------------------------------
   Editorial supporting blocks (keep Nécessaire calm/white between set pieces)
   --------------------------------------------------------------------------- */
.b-lede{padding:clamp(80px,14vh,170px) var(--pad); max-width:1180px; margin:0 auto}
.b-lede p{font-family:var(--display); font-weight:400; font-size:clamp(26px,3.6vw,56px);
  line-height:1.14; letter-spacing:-.02em; color:var(--ink); text-wrap:balance}
.b-lede p .mut{color:var(--muted)}

/* editorial product index row (oversized numerals · hover image swap) */
.b-index{border-top:1px solid var(--line)}
.b-row{display:grid; grid-template-columns:72px 1fr auto auto; gap:24px; align-items:center;
  padding:clamp(22px,3.4vh,40px) var(--pad); border-bottom:1px solid var(--line);
  max-width:var(--maxw); margin:0 auto; position:relative; transition:background .3s var(--b-ease)}
.b-row:hover{background:var(--tile)}
.b-row .no{font-family:var(--display); font-style:italic; color:var(--muted); font-size:clamp(18px,2vw,26px)}
.b-row .nm{font-family:var(--display); font-size:clamp(28px,4.4vw,60px); line-height:1; letter-spacing:-.02em}
.b-row .ty{color:var(--muted); font-size:13px; letter-spacing:.04em; justify-self:end; max-width:220px; text-align:right}
.b-row .pr{font-size:15px; font-weight:500; justify-self:end}
/* floating hover thumbnail (follows cursor) */
.b-thumb{position:fixed; z-index:30; width:230px; height:290px; pointer-events:none;
  opacity:0; transform:translate(-50%,-50%) scale(.9); transition:opacity .25s var(--b-ease),transform .4s var(--b-ease);
  box-shadow:0 30px 80px -30px rgba(13,13,13,.5); overflow:hidden; background:var(--tile)}
.b-thumb img{width:100%; height:100%; object-fit:cover}
.b-thumb.on{opacity:1; transform:translate(-50%,-50%) scale(1)}

/* big editorial outro band */
.b-outro{position:relative; background:var(--ink); color:var(--paper); text-align:center;
  padding:clamp(100px,20vh,240px) var(--pad)}
.b-outro h2{font-family:var(--display); font-weight:400; font-size:clamp(44px,9vw,150px);
  line-height:.94; letter-spacing:-.03em; color:var(--paper); margin-bottom:34px}
.b-outro .row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.b-outro .pill.white{background:var(--paper); color:var(--ink)}

/* ---------------------------------------------------------------------------
   Mobile (390x844) — equally striking, no layout shift
   --------------------------------------------------------------------------- */
@media (max-width:820px){
  /* B2 fix (Xpensiv medium: excessive whitespace above the fold) — mobile */
  .b-hero{min-height:100svh; padding-top:clamp(56px,10vh,96px)}
  .b-hero-foot{flex-direction:column; align-items:stretch; gap:20px}
  /* B2 fix (Xpensiv low: secondary CTA competes with primary) — add vertical
     breathing room between the primary (filled) and secondary (ghost) CTA so
     'Shop the collection' clearly leads on mobile */
  .b-hero-foot .row{flex-direction:column; gap:16px}
  .b-hero-foot .row .pill{width:100%}
  .b-prod{width:78vw}
  .b-call{font-size:11px}
  .b-call.c1{top:10%; left:52%}.b-call.c2{top:40%; left:60%}.b-call.c3{top:80%; left:50%}
  .b-call.c4{top:24%; left:4%}.b-call.c5{top:66%; left:4%}
  .b-call .lbl span{display:none}
  .b-row{grid-template-columns:40px 1fr; gap:10px}
  .b-row .ty,.b-row .pr{display:none}
  .b-thumb{display:none}             /* no cursor on touch */
}

/* ---------------------------------------------------------------------------
   PRODUCT page (bold) — pinned sticky gallery + oversized title
   --------------------------------------------------------------------------- */
body.bold-pdp .pdp{grid-template-columns:1.15fr 1fr; gap:clamp(24px,5vw,80px)}
body.bold-pdp .gal{gap:0}
body.bold-pdp .gal figure{aspect-ratio:4/5; position:relative; overflow:hidden; opacity:0;
  transform:translateY(40px) scale(1.04); will-change:transform,opacity}
html.bold-ready body.bold-pdp .gal figure img{transform:scale(1.06); transition:transform 1.2s var(--b-ease)}
body.bold-pdp .buy h1{font-family:var(--display); font-size:clamp(44px,6vw,92px); line-height:.94;
  letter-spacing:-.03em; overflow:hidden}
body.bold-pdp .buy h1 .bwi{display:inline-block; will-change:transform}
/* a quiet pinned "gallery note" flourish: image scales as the buy column is read */
body.bold-pdp .b-pdp-mark{position:absolute; top:14px; left:14px; z-index:2; font-size:11px;
  letter-spacing:.2em; text-transform:uppercase; color:#fff; mix-blend-mode:difference}

/* ---------------------------------------------------------------------------
   SHOP page (bold) — editorial page-hero + staggered grid entrance
   --------------------------------------------------------------------------- */
body.bold-shop .page-hero{background:var(--paper); color:var(--ink); min-height:52vh}
body.bold-shop .page-hero>img{display:none}
body.bold-shop .page-hero::after{display:none}
body.bold-shop .page-hero h1{color:var(--ink); font-size:clamp(56px,11vw,150px); line-height:.9;
  letter-spacing:-.03em; overflow:hidden}
body.bold-shop .page-hero h1 .bwi{display:inline-block; will-change:transform}
body.bold-shop .page-hero .eyebrow,body.bold-shop .page-hero .lead{color:var(--muted)}
body.bold-shop .filters button{transition:background .2s var(--b-ease),color .2s var(--b-ease),transform .2s var(--b-ease)}
body.bold-shop .filters button:active{transform:scale(.96)}
/* grid cards start hidden; JS staggers them in and re-stages on filter change */
html.bold-ready body.bold-shop #g .card{opacity:0; transform:translateY(34px); will-change:transform,opacity}
body.bold-shop #g .card .ph img{transition:opacity .35s var(--b-ease),transform .9s var(--b-ease)}

/* ---------------------------------------------------------------------------
   INNER editorial pages (science / story / journal / faq / contact) — bold
   white page-hero, oversized mask-rise title, generous Nécessaire whitespace.
   --------------------------------------------------------------------------- */
body.bold-page .page-hero,
body.bold-page .hero{background:var(--paper); color:var(--ink)}
body.bold-page .page-hero>img,
body.bold-page .hero>img,
body.bold-page .hero video{display:none}
body.bold-page .page-hero::after,
body.bold-page .hero::after{display:none}
body.bold-page .page-hero{min-height:56vh; justify-content:flex-end}
body.bold-page .hero{min-height:62vh!important; align-items:flex-end}
body.bold-page .page-hero h1,
body.bold-page .hero h1{color:var(--ink); font-family:var(--display); font-weight:400;
  font-size:clamp(52px,10vw,150px); line-height:.9; letter-spacing:-.03em; overflow:hidden}
body.bold-page .page-hero h1 .bwi,
body.bold-page .hero h1 .bwi{display:inline-block; will-change:transform}
body.bold-page .page-hero .eyebrow,
body.bold-page .hero .eyebrow{color:var(--muted)}
body.bold-page .page-hero .lead,
body.bold-page .hero .lead,
body.bold-page .hero p{color:var(--muted)}
body.bold-page .hero .inner{max-width:var(--maxw)}
/* keep links inside the (now light) hero readable */
body.bold-page .page-hero a[style*="#fff"]{color:var(--ink)!important}

/* ---------------------------------------------------------------------------
   prefers-reduced-motion — everything legible & static, no pins, no canvas
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .b-hero-stage{display:none}
  .b-hd .line > span{transform:none!important}
  .b-cue{display:none}
  .b-story .b-stage,.b-reveal .b-stage{height:auto; display:block; padding:clamp(60px,10vh,120px) 0}
  .b-scene{position:static; opacity:1; transform:none!important; margin-bottom:40px}
  .b-marquee{position:static; opacity:1}
  .b-marquee .track{transform:none!important; flex-wrap:wrap; white-space:normal}
  .b-rail,.b-rail-n{display:none}
  .b-call{position:static; opacity:1; transform:none!important; margin:10px 0}
  .b-call .ln{width:40px}
  .b-reveal .stagehd,.b-reveal .cta{position:static}
  .b-prod{width:min(80%,420px); margin:24px auto}
  .b-thumb{display:none}
  body.bold-pdp .gal figure,html.bold-ready body.bold-shop #g .card{opacity:1!important;transform:none!important}
  body.bold-pdp .buy h1 .bwi,body.bold-shop .page-hero h1 .bwi{transform:none!important}
  body.bold-page .page-hero h1 .bwi,body.bold-page .hero h1 .bwi{transform:none!important}
}

/* add-to-bag on the editorial index rows */
.b-item{position:relative;max-width:var(--maxw);margin:0 auto}
.b-item .b-row{padding-right:calc(var(--pad) + 150px)}
.b-item .b-add{position:absolute;right:var(--pad);top:50%;transform:translateY(-50%);height:42px;padding:0 22px;font-size:13px}
.b-item .b-add:hover{transform:translateY(-52%)}
.b-row .pr{font-size:13px}
[hidden].b-rail-n{display:none}
@media (max-width:720px){.b-item .b-row{padding-right:calc(var(--pad) + 112px)}.b-item .b-add{padding:0 16px;height:40px}}
/* AL-G1/G2: split-text masks clipped descenders (italic g, y, p, j) — add bottom room, cancel it with negative margin so layout is unchanged */
.b-hd .line{padding-bottom:.2em;margin-bottom:-.2em;padding-right:.08em;margin-right:-.08em}
.bw{padding-bottom:.2em;margin-bottom:-.2em}
body.bold-page .page-hero h1,body.bold-page .hero h1{padding-bottom:.2em;margin-bottom:-.2em}

/* ===== mobile audit fixes (Forge) — additive ===== */
/* AL-TAP: >=44px touch targets on phones/touch, without changing visual size */
@media (max-width:820px),(pointer:coarse){
  .burger::after{content:"";position:absolute;left:-14px;right:-14px;top:-14px;bottom:-14px}
  .hdr-r .icon-btn{min-height:44px;padding-left:6px;padding-right:6px}
  .logo{display:inline-flex;align-items:center;min-height:44px}
  .ftr-g a{display:block;padding:11px 0;margin:-4px 0}
  .ftr-b a,.ftr a.pill{min-height:44px}
  .x{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .pop .x{top:0;right:0}
  .pill.sm{height:44px}
  #f button,.filters button{min-height:44px}
  .card h3 a{display:inline-block;padding:12px 0;margin:-12px 0}
  .acc summary,.faq summary{min-height:44px;align-items:center}
  .mmenu{padding-top:140px}
}

/* ===== mobile audit fixes, part 2 (13 Nov): targets added after the 9 Nov audit. Hit areas only, layout unchanged ===== */
@media (max-width:820px),(pointer:coarse){
  .u,.ftr-b a,.card h3 a{position:relative}
  .u::before,.ftr-b a::before,.card h3 a::before{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:44px;transform:translateY(-50%)}
  body .card .add{height:44px}
  body .ftr .sub-f .pill.sm{height:44px}
  .hdr-r .icon-btn.cart-btn{padding-left:0;padding-right:0;position:relative;min-height:0}
  .hdr-r .cart-btn svg{flex:none}
  .hdr-r .cart-btn::before{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
}

/* descenders: page-hero and product h1 on bold pages (body.bold-shop, body.bold-pdp ...) */
body[class*="bold-"] .page-hero h1,body.bold-pdp #nm{padding-bottom:.2em;margin-bottom:-.2em}
