/* The Brand Build Up, homepage A: fields per chapter and the two seams (package X, 24 Nov 2026, PLAN-rest-2026-11-24.md 1.2
   and 1.3). Loaded last. The footer and its lock-in belong to package F (ha-footer.*, ha-lock.*): here only its stacking and
   the field it rises from on the homepage (--ha-under: chapter 3's cream).
   Composed state (no JS, reduced motion): every chapter on its own lacquer, hero yellow, chapter 2 ink, chapter 3 cream.
   No pins, no floods.
   .ha-desk / .ha-phone (ha-stage.js): chapters 2 and 3 have no field of their own; their field is the face that swelled out
   of a slab (BUILD's ink, the tenth block's cream) on a fixed layer. Stacking, low to high: hero < ink face 40 < chapter 2
   41 < cream face 43 < chapter 3 44 < footer 46; phone copies just above the chapter they open (42, 45), posters 41 / 44. */

/* ---------- composed state: one lacquer per chapter ---------- */
.page-index .mag{position:relative;background:var(--ha-field-i);border-block-start-width:0}
.page-index .involved{position:relative;background:var(--ha-field-c);border-block-start-width:0}
.page-index .site-footer{--ha-under:var(--ha-field-c)}

/* the scroll stage owns BUILD while it is lifted (ha-stage.js draws its face) and the tenth block while it stands */
.ha-lifted .hero__title .slab--ink{visibility:hidden}
.ha-b10-lifted .mag .play-block--last{visibility:hidden}

/* ---------- stage ---------- */
/* the hero fills the screen under the header and ticker, so chapter 2 starts at the screen's bottom edge when the held
   hero has become the BUILD poster */
.ha-desk .hero{min-block-size:calc(100vh - 128px)}
/* seam 1 plates (ha-stage.js writes the variables): the top plate (header, ticker, THE BRAND) and the bottom plate (UP, copy,
   buttons) move as one vector each, the "10" slab moves right; always at or ahead of the face's edges */
.ha-desk .ticker{translate:0 var(--ha-ph,0px)}
.ha-desk .hero__title .slab--yellow{translate:0 var(--ha-pu,0px)}
.ha-desk .hero__title .slab--card,.ha-desk .hero__sub,.ha-desk .hero__support,.ha-desk .hero__actions{translate:0 var(--ha-pd,0px)}
.ha-desk .hero .hero-card{translate:var(--ha-pr,0px) 0}
/* seam 2 plates: the Founders slab out to the left, the headline and the articles out to the right */
.ha-desk .mag .feature{translate:var(--ha-p2l,0px) 0}
.ha-desk .mag .mag__side{translate:var(--ha-p2r,0px) 0}
/* chapter 3 starts right under the "10" poster (ha-stage.js measures the overlap) */
.ha-desk .involved{margin-block-start:var(--ha-inv-mt,0px)}
/* phone shoves: the chapter above goes up ahead of the flooding face's top edge */
/* (the hero's content moves, never the hero itself: a translated box draws its fixed-attached field as scrolling, which
   would show as a straight edge between two yellows) */
.ha-phone .hero{z-index:3}
.ha-phone .hero > .container{translate:0 var(--ha-m1,0px)}
.ha-phone .mag{translate:0 var(--ha-m2,0px)}
.ha-desk .mag,.ha-phone .mag{background:transparent;z-index:41}
.ha-desk .involved,.ha-phone .involved{background:transparent;z-index:44}
.ha-desk .site-footer,.ha-phone .site-footer{z-index:46}
/* the yellow lacquer stays behind everything the BUILD swell pushes out (the header plate leaves the top of the screen) */
.ha-desk body,.ha-phone body{background:var(--ha-field-y)}
/* phone: chapter 2 ends close under its last article, so no wide band of empty ink waits under the tenth block's drop */
.ha-phone .mag{padding-block-end:28px}

.ha-ink,.ha-cream{position:fixed;inset:0;pointer-events:none;overflow:hidden;visibility:hidden;contain:strict}
.ha-ink{z-index:40}
.ha-cream{z-index:43}
.ha-ink.is-on,.ha-cream.is-on{visibility:visible}
.ha-face{position:absolute;left:0;top:0;border-radius:var(--ha-rad,8px);will-change:left,top,width,height}
/* BUILD's face: flat ink with its band at the start (the slab), the ink lacquer field once it is the screen */
.ha-ink .ha-face{
  background:linear-gradient(rgb(22 24 29/var(--ha-flat,1)),rgb(22 24 29/var(--ha-flat,1))),var(--ha-field-i);
  box-shadow:inset 0 -2px 0 rgb(0 0 0/calc(.4 * var(--ha-edge,1))),
    var(--ha-ish,12px) var(--ha-ish,12px) 0 0 var(--ha-hard),22px 34px 34px -10px rgb(22 24 29/.4)}
/* the tenth block's face: the block's ink border at the start, cream lacquer from its first frame on: the slab band, the
   field's light, a lit top edge, a darker side face along the bottom, the hard sticker shadow and the soft ground shadow */
.ha-cream .ha-face{
  background:var(--ha-band) var(--ha-slab-x,40%) 0/260% 100% no-repeat,
    linear-gradient(rgb(251 248 238/var(--ha-flat,1)),rgb(251 248 238/var(--ha-flat,1))),var(--ha-field-c);
  box-shadow:inset 0 0 0 calc(2px * var(--ha-ring,1)) rgb(22 24 29/var(--ha-ring,1)),
    inset 0 -6px 0 0 rgb(150 134 92/calc(.38 * var(--ha-edge,1))),
    0 calc(5px * var(--ha-edge,1)) 0 0 rgb(196 186 158/var(--ha-edge,1)),
    calc(4px + 8px * var(--ha-lift,1)) calc(8px + 4px * var(--ha-lift,1)) 0 0 rgb(14 15 18/calc(.25 + .75 * var(--ha-lift,1))),
    22px 40px 50px -16px rgb(22 24 29/.32)}
.ha-word{position:absolute;left:0;top:0;white-space:nowrap;font-family:var(--font-head);font-weight:700;line-height:.98;
  letter-spacing:-.005em;transform-origin:50% 50%;will-change:transform}
.ha-ink .ha-word{padding:.07em .2em .03em;color:var(--ha-y)}
.ha-cream .ha-word{line-height:1;letter-spacing:.03em;color:var(--ha-ink);font-variant-numeric:tabular-nums}

/* phone: slab copies that drop onto a seam, each in a clip that starts under the content above it (never over text) */
.ha-clip{position:absolute;left:0;inline-size:100%;overflow:hidden;pointer-events:none;visibility:hidden}
.ha-clip.is-on{visibility:visible}
.ha-clip--build{z-index:42}
.ha-clip--b10{z-index:45}
.ha-copy{position:absolute;left:0;top:0;white-space:nowrap;will-change:transform}
.ha-copy > span{display:inline-block}
.ha-copy--build{color:var(--ha-y);background:var(--ha-band-i) var(--ha-slab-x,40%) 0/260% 100% no-repeat,var(--ha-ink);
  font-family:var(--font-head);font-weight:700;line-height:.98;letter-spacing:-.005em;border-radius:.1em;padding:.07em .2em .03em;
  box-shadow:inset 0 -2px 0 rgb(0 0 0/.4),8px 8px 0 0 var(--ha-hard)}
.ha-copy--b10{border:2px solid var(--ha-ink);border-radius:10px;background:var(--ha-cream);
  box-shadow:0 5px 0 0 #B9B09A,9px 13px 0 0 var(--ha-hard)}
.ha-copy--b10 span{position:absolute;left:.5em;bottom:.4em;color:var(--ha-ink);font:700 1em/1 var(--font-head);letter-spacing:.03em;
  font-variant-numeric:tabular-nums}
/* phone posters: the print stands in the page above the next chapter's first content, so both scroll on together */
.ha-poster{position:absolute;left:0;top:0;white-space:nowrap;font-family:var(--font-head);font-weight:700;line-height:.98;
  letter-spacing:-.005em;pointer-events:none;visibility:hidden}
.ha-poster.is-on{visibility:visible}
.ha-poster--i{z-index:41;color:var(--ha-y);padding:.07em .2em .03em}
.ha-poster--c{z-index:44;color:var(--ha-ink);line-height:1;letter-spacing:.03em;font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:reduce){
  .hero__title .slab{transition:none}
}
