/* ==========================================================================
   Age Limit · Version A · DESIGN LAYER (Nécessaire-led)
   Loaded AFTER site.css. Typography, spacing, imagery, micro-detail only.
   It never touches the original motion (keyframes, rv-up, hero up, phz,
   science/hs/par engine, card/cat/post zooms, nav sweep, burger, accordion).
   Skill tags: [NAS] No AI Slop · [TST] Taste · [DKG] Deck.gallery ·
   [DNA] Design DNA · [EMK] Emil Kowalski · [GEN] Genjutsu · [3JS][GSP][LOT][HYP] see design-layer.js
   ========================================================================== */

/* [DNA] Design DNA — tokens distilled from necessaire.com (measured on the
   1440 reference): 15px gutter, neutral tile, 24px section title, 13px caps
   link, 46px pill, 12px announce, hairline rules. Colours stay Age Limit v2. */
:root{
  --dna-gutter:16px;            /* Nécessaire grid gutter is 15px */
  --dna-rule:1px solid var(--line);
  --dna-title:clamp(22px,2.1vw,30px);
  --dna-caps:12.5px;
  --dna-pill-h:44px;
  --dna-sec:clamp(48px,8vh,88px);   /* Nécessaire sections sit tight; v2 was up to 128px */
  --dna-tile-floor:rgba(20,20,20,.07);
  --e-out:cubic-bezier(.23,1,.32,1);   /* [EMK] strong ease-out for press feedback */
}

/* [TST] Taste — restraint: one rhythm, one measure, no ornament */
html{text-rendering:optimizeLegibility;font-kerning:normal}
body{font-feature-settings:"kern","liga","calt";font-variant-numeric:lining-nums}
h1,h2,h3,.sci h3{text-wrap:balance}
p,.lead,.sci p,.acc p{text-wrap:pretty}
.price,.stats b,.dr-row span,#drT,.card .price s{font-variant-numeric:tabular-nums lining-nums}
::selection{background:var(--ink);color:var(--paper)}
.hero h1{letter-spacing:-.025em;line-height:1.02}
.eyebrow{letter-spacing:.12em;font-size:11.5px}
.sec{padding-top:var(--dna-sec);padding-bottom:var(--dna-sec)}
.grid{gap:var(--dna-gutter)}
.cats{gap:var(--dna-gutter)}
.track{gap:var(--dna-gutter)}

/* Typography parity with Nécessaire section headers: small title left, caps link right */
.rowhead{padding-bottom:14px;margin-bottom:var(--dna-gutter)}
.rowhead h2{font-size:var(--dna-title);letter-spacing:-.012em}
.u{font-size:var(--dna-caps);letter-spacing:.06em;font-weight:500;padding-bottom:2px}

/* [DKG] Deck.gallery — editorial slide index: each section carries a quiet
   "01 — 06" folio like a deck page, set above the hairline. */
main{counter-reset:folio}
.rowhead{counter-increment:folio;position:relative}
.rowhead::before{content:counter(folio,decimal-leading-zero) " \2014  Age Limit";position:absolute;top:-26px;left:0;font:500 10.5px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.band .rowhead::before{color:var(--muted-d)}
.science::before,.hs::before{content:none}
.eyebrow{font-variant-caps:normal}

/* Product card, Nécessaire-style: neutral tile, small light chip, pill add-button */
.card .ph{aspect-ratio:6/7}
.tag{top:10px;right:10px;background:#e6e6e6;color:var(--ink);font-size:10px;letter-spacing:.06em;padding:4px 8px;border-radius:2px}
.card .meta{padding-top:12px;gap:2px}
.card h3{font-size:15px;font-weight:500}
.card .sub{font-size:13px}
.card .price{font-weight:600;font-size:13.5px;margin-top:6px}
.card .add{height:var(--dna-pill-h);border-radius:99px;margin-top:12px;font-size:13.5px;transition:background .2s var(--ease),transform .16s var(--e-out)}
.pill{height:var(--dna-pill-h);padding:0 28px}
.pill.sm{height:40px}

/* [GEN] Genjutsu — the illusion of studio air: product photography is
   multiplied into the tile and given a soft contact floor, so the pack
   appears to rest on the grey rather than sit in a box. No new motion. */
.card .ph{background:var(--tile)}
.card .ph img.a,.card .ph img.b{mix-blend-mode:multiply}
.card .ph::after{content:"";position:absolute;left:12%;right:12%;bottom:0;height:22%;z-index:0;pointer-events:none;
  background:radial-gradient(60% 100% at 50% 100%,var(--dna-tile-floor),transparent 70%)}
.card .ph .tag{z-index:2}
.split figure img,.hcard figure img,.post figure img{filter:saturate(.96) contrast(1.02)}
.hero video,.hero>img{filter:saturate(.9)}
.hero,.band,.page-hero{isolation:isolate}

/* [EMK] Emil Kowalski — details that feel right: instant press feedback,
   specific transition properties, hover only where hover exists, 44px hit areas. */
.pill:active,.card .add:active,.filters button:active,.tabs button:active,.icon-btn:active{transform:scale(.97);transition-duration:.12s}
.u:active{opacity:.45}
.icon-btn{min-height:44px}
.burger::before{content:"";position:absolute;inset:-14px}
@media (hover:none){.pill:hover{transform:none}.card:hover .ph img{transform:none}}
.drawer,.pop-c{will-change:transform}
.veil{backdrop-filter:none}

/* [HYP]/[3JS] canvases mounted by design-layer.js */
.fx{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:.55}
.band>img{z-index:auto}
.band::after{z-index:0}
.band .c{z-index:2}
.hero-c{z-index:2}

/* [GSP] reading-progress hairline (GSAP quickSetter) */
.prog{position:fixed;left:0;right:0;top:0;height:2px;z-index:80;background:var(--ink);transform:scaleX(0);transform-origin:left;pointer-events:none}

/* [LOT] Lottie confirmation in the bag drawer header */
.dr-h .lt{width:34px;height:34px;margin-left:10px;opacity:0;transition:opacity .3s}
.dr-h .lt.on{opacity:1}
.dr-h{justify-content:flex-start;gap:0}
.dr-h .x{margin-left:auto}

@media (max-width:820px){
  .rowhead::before{top:-22px}
  .sec{padding-top:44px;padding-bottom:44px}
  .grid,.grid.g3{gap:12px}
  .card .add{height:42px}
  .fx{opacity:.4}
}
@media (prefers-reduced-motion:reduce){.fx,.prog{display:none}}
