/* scenes/engage.css (W7; SOLCO-588 P7): #engage, Two ways to build with us (spec 2.8). Two cards side by side, each in the same order: the name band
   (numeral, seal glyph, eyebrow, the line's name, a rule that draws left to right), the promise, a drawing with three labels, what you get, a
   three-row ledger and the CTA. The rows are a subgrid, so the two cards' bands, drawings and ledgers sit level however long each card's words run.
   The cards carry the seal's own notch on their left edge, as a fill (a clip-path), never a border: Line 1 the short cut, Line 2 the deep cut,
   and the content's left padding is always the cut's reach plus 12 px. Default (no JS, static, fx-fail, reduced motion): each card shows its half of
   the composed two-lines frame (the completed state), every label and price-strip bar lit. The cinematic layer needs `.engage-live`, which
   scenes/engage.mjs sets: the live drawings replace the stills and the dots light as each beat lands.
   No paper, no tape, no diagonal stripe (D2, D3): plain ink rules and the one ultramarine accent. */

#engage { --pad-block: clamp(56px, 6.5vw, 104px); padding-top: calc(var(--seam) + var(--pad-block) + clamp(1.25rem, 3.5vw, 3.25rem)); }
#engage h2 { font-size: clamp(1.9rem, 4.7vw, 4.4rem); margin-bottom: clamp(1.75rem, 3.2vw, 3rem); padding-top: .12em; }
.engage__lede { max-width: 52ch; margin: calc(-1 * clamp(.75rem, 1.6vw, 1.5rem)) 0 clamp(1.5rem, 2.8vw, 2.5rem); font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--on-bone-dim); }

/* ---- the two cards ------------------------------------------------------------------------------------------------- */
.eng { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); column-gap: clamp(1rem, 2vw, 1.75rem); row-gap: 0; }
.eng__line {
  --pad: clamp(1.25rem, 2.4vw, 2.25rem);
  --reach: var(--cut-short);
  --notch-y: calc(var(--pad) + 8px);
  --notch-h: 10px;
  /* The seal's notch: a left-edge slot as deep as the cut's reach, cut out of the fill. */
  --pl: calc(var(--reach) * var(--cut-k) + 12px + 8px);
  position: relative; min-width: 0;
  display: grid; grid-row: span 7; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr);
  background: var(--bone-2); color: var(--on-bone);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--notch-y) + var(--notch-h)), calc(var(--reach) * var(--cut-k)) calc(var(--notch-y) + var(--notch-h)), calc(var(--reach) * var(--cut-k)) var(--notch-y), 0 var(--notch-y));
}
.eng__line[data-line="2"] { --reach: var(--cut-deep); }
.eng__line > * { min-width: 0; padding-inline: max(var(--pad), var(--pl)) var(--pad); }

/* name band */
.eng__band { position: relative; display: flex; flex-direction: column; padding-top: var(--pad); padding-bottom: 1.35rem; }
.eng__id { position: relative; display: flex; align-items: center; gap: .75rem; }
.eng__num { font-family: var(--font-mono); font-size: var(--t-data); font-weight: 700; letter-spacing: .12em; color: var(--on-bone); }
.eng__seal { display: block; width: 28px; height: 28px; flex: none; }
.eng__eyebrow { margin: 0; font-family: var(--font-mono); font-size: var(--t-data); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-bone-dim); }
.eng__name { margin: 1rem 0 0; font-family: var(--font-display); font-size: clamp(34px, 2.8vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word; color: var(--on-bone); }
.eng__rule { position: absolute; left: max(var(--pad), var(--pl)); right: var(--pad); bottom: 0; height: 2px; background: var(--signal); transform-origin: 0 50%; }

.eng__promise { margin: 0; padding-bottom: 1.25rem; max-width: 52ch; font-size: clamp(1.1rem, 1.4vw, 1.35rem); font-weight: 500; line-height: 1.45; color: var(--on-bone); }

/* drawing and its three labels */
.eng__gfx { padding-inline: 0 !important; }
.eng__art { display: none; }
.eng__still { aspect-ratio: 720 / 528; overflow: hidden; }
.eng__still img { display: block; width: 200%; max-width: none; height: 100%; }
.eng__line[data-line="2"] .eng__still img { margin-left: -100%; }
.eng__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-top: .35rem; padding-bottom: 1.4rem; }
.eng__steps li { position: relative; padding-top: .85rem; font-size: clamp(1rem, 1.1vw, 1.12rem); font-weight: 600; line-height: 1.3; color: var(--on-bone); }
.eng__steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--signal); transition: background-color .25s steps(3); }

/* the price strip: three steps, each a segment bar that lights with its beat, an icon, the step and its figure (20 to 24 px) */
.eng__ledger { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.01fr) minmax(0, 1.25fr); gap: .6rem; margin: 0; padding-block: 0 1.4rem; list-style: none; }
@media (min-width: 901px) { .eng__line[data-line="2"] .eng__ledger { grid-template-columns: minmax(0, .68fr) minmax(0, 1.45fr) minmax(0, .87fr); } }
.eng__ledger li { position: relative; display: grid; align-content: start; gap: .6rem; padding-top: 1rem; }
.eng__ledger li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--signal); transition: background-color .25s steps(3); }
.led__head { display: grid; gap: .2rem; margin: 0; }
.led__when { font-family: var(--font-mono); font-size: var(--t-data); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-bone-dim); }
.led__fig { font-family: var(--font-display); font-size: clamp(1.25rem, 1.4vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: var(--on-bone); }
.ico { display: block; width: 28px; height: 28px; flex: none; fill: none; stroke: var(--on-bone); stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }

/* what's included: four short ticks */
.eng__get { padding-bottom: 1.6rem; border-top: 2px solid var(--on-bone); padding-top: 1rem; }
.eng__k { margin: 0 0 .8rem; font-family: var(--font-mono); font-size: var(--t-data); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-bone-dim); }
.eng__list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.eng__list li { display: flex; align-items: center; gap: .7rem; font-size: clamp(1rem, 1.12vw, 1.12rem); font-weight: 500; line-height: 1.35; color: var(--on-bone); }
.ico--chk { width: 22px; height: 22px; stroke: var(--signal-d); stroke-width: 2.6; }

.eng__go { padding-bottom: var(--pad); }
.eng__cta { min-height: 48px; padding-block: .85em; white-space: normal; text-align: center; line-height: 1.25; }

.engage__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; margin-top: clamp(1.25rem, 2.4vw, 2rem); }
.engage__note { max-width: 60ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 600; color: var(--on-bone); }
.engage__note .link { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; white-space: nowrap; }

/* One full seal in this act (line 1); line 2 carries the bare cut bar instead. Both are struck by the impulse (scenes/engage.mjs). */
.eng__mark { will-change: auto; }
.eng__ghost { position: absolute; pointer-events: none; opacity: 0; }

/* ---- cinematic ---------------------------------------------------------------------------------------------------- */
/* The drawing boxes are laid out from first paint (the head guard adds `.js` before CSS evaluates), empty until the scene fills them, so the
   scene booting late never moves the page: the section has the same height before and after. A scene that failed (`data-fx-fail`) keeps the still. */
html.js:not(.fx-fail):not(.static) #engage:not([data-fx-fail]) .eng__still { display: none; }
html.js:not(.fx-fail):not(.static) #engage:not([data-fx-fail]) .eng__art { display: block; aspect-ratio: 600 / 440; padding: clamp(.35rem, 1vw, .9rem); box-sizing: border-box; }
.engage-live .eng__art svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* One custom property retunes every stroke to the scale the drawing is shown at (the scene sets --sw), another the drawing's own words (--fs). */
.engage-live .eng__art .ink { stroke-width: var(--sw, 3); }
.eng__art .chip-t, .eng__art .g-t { font-family: var(--font-body); font-size: calc(var(--fs, 15) * 1px); font-weight: 600; letter-spacing: 0; pointer-events: none; }
.eng__art .t-short { display: none; }
/* A label or price-strip bar that the drawing has not reached yet keeps its full contrast; only its bar waits, grey. */
.engage-live .eng__steps li:not(.is-on)::before, .engage-live .eng__ledger li:not(.is-on)::before { background: rgb(11 12 15 / .28); }
/* The name band's rule draws left to right as the band comes into view. */
.engage-live .eng__rule { transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.engage-live .eng__line.is-in .eng__rule { transform: scaleX(1); }

/* ---- phone: one column, the cards stack, labels and ledger run vertically -------------------------------------------------- */
@media (max-width: 900px) {
  .eng { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 1.25rem; }
  .eng__line { --cut-k: .6; --pad: 1.25rem; --notch-y: 1.6rem; display: flex; flex-direction: column; grid-row: auto; }
  .eng__steps { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding-top: .6rem; }
  .eng__steps li { padding: 0 0 0 1.15rem; }
  .eng__steps li::before { right: auto; top: .2em; bottom: .2em; width: 4px; height: auto; }
  .eng__cta { width: 100%; }
  .eng__go { padding-top: .25rem; }
  .eng__ledger { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .eng__ledger li { grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: .6rem; padding: .8rem 0 .8rem .9rem; }
  .eng__ledger li::before { right: auto; top: .55rem; bottom: .55rem; width: 4px; height: auto; }
  .eng__ledger .ico { width: 24px; height: 24px; }
  .led__head { grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: .5rem; }
  .led__fig { font-size: 1.1875rem; text-align: right; text-wrap: balance; }
  .eng__art .t-long { display: none; }
  .eng__art .t-short { display: inline; }
}
@media (max-width: 360px) { .eng__name { font-size: 30px; } }

@media print { #engage .eng__still { display: block !important; } #engage .eng__art { display: none !important; } }
