/* The Brand Build Up, homepage A: chapter 3 "Get involved" (package C3F, 24 Nov 2026, PLAN-homepage-A-2026-11-24.md 1.2).
   Two invitation cards as two slabs on the cream lacquer: left Build Yellow, right Ink (tilted 1.5 deg, straight while held).
   Each slab: lit top edge, a side face (the slab's thickness), a hard sticker shadow (12 px at rest, 28 px held) and a wide
   soft ground shadow. The reflection band follows --ha-light (ha-material.css: --ha-slab-x), the ink slab out of phase.
   Owns only this chapter's cards. Sets no background on .involved (field wiring: integration), no transform on the cards
   (GSAP drop and the blocks engine own transform, translate and rotate).
   Base rules = the composed state (no JS, reduced motion, phone). */

@property --ha-c3-sh{syntax:'<length>';inherits:true;initial-value:12px}
@property --ha-c3-ptr{syntax:'<percentage>';inherits:true;initial-value:0%}

.involved{
  --ha-c3-side:14px;                 /* the slab's side face */
  --ha-c3-hard:#0E0F12;
}
.involved .involved__grid{align-items:stretch;gap:clamp(28px,3.2vw,48px)}

/* ---------- the slabs ---------- */
html:root .involved .involved__grid .cta-card{
  --ha-c3-sh:12px;
  border:0;border-radius:14px;padding:clamp(26px,3.4vw,48px);
  touch-action:pan-y;
  transition:--ha-c3-sh .34s cubic-bezier(.23,1,.32,1),--ha-c3-ptr .7s cubic-bezier(.23,1,.32,1),translate .3s var(--ease,ease),transform .3s var(--ease,ease)}
html:root .involved .involved__grid .cta-card:not(.is-held){--ha-c3-ptr:0%}

/* card 1: Build Yellow, the brightest lit face on the cream */
html:root .involved .involved__grid .cta-card:nth-child(1){
  --ha-c3-band:linear-gradient(transparent,transparent);
  background:var(--ha-c3-band) calc(var(--ha-slab-x,40%) + var(--ha-c3-ptr)) 0/260% 100% no-repeat,
    linear-gradient(165deg,#FDEF9B,#FBE989);
  box-shadow:inset 0 -2px 0 rgb(150 122 15/.45),
    0 var(--ha-c3-side) 0 0 #D4B63E,
    var(--ha-c3-sh) var(--ha-c3-sh) 0 0 var(--ha-c3-hard),
    var(--ha-c3-sh) calc(var(--ha-c3-sh) + var(--ha-c3-side)) 0 0 var(--ha-c3-hard),
    var(--ha-ground-c,22px 46px 72px -22px rgb(96 78 30/.26))}

/* card 2: Ink, tilted 1.5 deg at rest (the one tilted element on the screen), out of phase with the first band */
html:root .involved .involved__grid .cta-card:nth-child(2){
  --ha-c3-band:linear-gradient(transparent,transparent);
  rotate:1.5deg;
  background:var(--ha-c3-band) calc(98% - var(--ha-slab-x,40%) - var(--ha-c3-ptr)) 0/260% 100% no-repeat,
    linear-gradient(160deg,#1F222A,#191B21);
  box-shadow:inset 0 -2px 0 rgb(0 0 0/.45),
    0 var(--ha-c3-side) 0 0 #2B2F3A,
    var(--ha-c3-sh) var(--ha-c3-sh) 0 0 var(--ha-c3-hard),
    var(--ha-c3-sh) calc(var(--ha-c3-sh) + var(--ha-c3-side)) 0 0 var(--ha-c3-hard),
    var(--ha-ground-c,22px 46px 72px -22px rgb(96 78 30/.26))}

/* hover (mouse): the engine lifts the slab 6 px; the sticker shadow grows with it */
@media (hover:hover) and (pointer:fine){
  html:root .involved .involved__grid .cta-card:not(.is-held):hover{--ha-c3-sh:16px}
}
/* held (engine class is-held): shadow lengthens to 28 px, the band slides, the ink slab straightens (engine writes rotate) */
html:root .involved .involved__grid .cta-card.is-held{--ha-c3-sh:28px;--ha-c3-ptr:34%}
html:root .involved .involved__grid .cta-card:nth-child(1).is-held{
  box-shadow:inset 0 -2px 0 rgb(150 122 15/.45),
    0 var(--ha-c3-side) 0 0 #D4B63E,
    var(--ha-c3-sh) var(--ha-c3-sh) 0 0 var(--ha-c3-hard),
    var(--ha-c3-sh) calc(var(--ha-c3-sh) + var(--ha-c3-side)) 0 0 var(--ha-c3-hard),
    32px 76px 80px -24px rgb(96 78 30/.34)}
html:root .involved .involved__grid .cta-card:nth-child(2).is-held{
  box-shadow:inset 0 -2px 0 rgb(0 0 0/.45),
    0 var(--ha-c3-side) 0 0 #2B2F3A,
    var(--ha-c3-sh) var(--ha-c3-sh) 0 0 var(--ha-c3-hard),
    var(--ha-c3-sh) calc(var(--ha-c3-sh) + var(--ha-c3-side)) 0 0 var(--ha-c3-hard),
    32px 76px 80px -24px rgb(96 78 30/.34)}
/* the tilt eases to straight at the pick-up and back at the drop (ha-ch3.js sets .ha-c3-ease for the first 400 ms) */
html:root .involved .involved__grid .cta-card.ha-c3-ease{transition:--ha-c3-sh .34s cubic-bezier(.23,1,.32,1),--ha-c3-ptr .7s cubic-bezier(.23,1,.32,1),rotate .4s cubic-bezier(.23,1,.32,1),translate .3s var(--ease,ease)}
/* the entrance drop: no CSS transitions while GSAP writes the shadow */
html:root .involved .involved__grid .cta-card.ha-c3-drop{transition:none;pointer-events:none}

/* ---------- type: the card headlines carry the chapter (80 px at 1440; ha-ch3.js shrinks both to the largest size
   that fits three lines and reports it in --ha-c3-h3) ---------- */
html:root .involved .involved__grid .cta-card h3{
  font-size:var(--ha-c3-h3,clamp(2.5rem,5.56vw,5rem));line-height:.98;letter-spacing:0;text-wrap:balance;max-inline-size:none;
  overflow-wrap:normal}
html:root .involved .involved__grid .cta-card h3 .ha-line{display:block}
html:root .involved .involved__grid .cta-card:nth-child(1) h3{color:var(--ha-ink,#16181D)}
html:root .involved .involved__grid .cta-card:nth-child(2) h3{color:var(--ha-cream,#FBF8EE)}
html:root .involved .involved__grid .cta-card p{margin-block:20px 30px;max-inline-size:36ch;font-size:clamp(1.0625rem,1vw + .7rem,1.25rem);line-height:1.5}
html:root .involved .involved__grid .cta-card:nth-child(1) p{color:#3E3A2C}
html:root .involved .involved__grid .cta-card:nth-child(2) p{color:#DDD9CB}

/* the buttons are small slabs of their own: lit top edge and a short sticker shadow */
html:root .involved .involved__grid .cta-card .link-arrow{border-radius:10px;min-block-size:52px;padding-inline:24px}
html:root .involved .involved__grid .cta-card:nth-child(1) .link-arrow{
  box-shadow:4px 4px 0 0 rgb(22 24 29/.28)}
html:root .involved .involved__grid .cta-card:nth-child(2) .link-arrow{
  box-shadow:4px 4px 0 0 rgb(0 0 0/.55)}

/* ---------- phone: stacked, yellow first; shorter side face and shadow ---------- */
@media (max-width:699px){
  .involved{--ha-c3-side:10px}
  html:root .involved .involved__grid .cta-card{--ha-c3-sh:8px;padding:26px 24px 30px}
  html:root .involved .involved__grid .cta-card:not(.is-held):hover{--ha-c3-sh:8px}
  html:root .involved .involved__grid .cta-card.is-held{--ha-c3-sh:20px}
  html:root .involved .involved__grid{gap:30px}
}
@media (max-width:899px){
  html:root .involved .involved__grid .cta-card:nth-child(2){rotate:1.2deg}
}

@media (prefers-reduced-motion:reduce){
  html:root .involved .involved__grid .cta-card{transition:none}
}

/* phones 360 to 479: the card headline never grows wider than the card ("CONVERSATION?" on the ink card); ha-ch3.js also
   shrinks it until the longest word fits (package X, audit fix) */
@media (max-width:479px){
  html:root .involved .involved__grid .cta-card h3{font-size:min(var(--ha-c3-h3,52px),11vw)}
}
