/* The hidden 1 x 1 picture at the top of this section is on purpose (kept from he140, A2676; publish SOP B12, AG-T465): before
   the tap the engine warms the first section that holds a lazy <img>; this slab is drawn in CSS. */
/* he201 Acrylic slab (INV-21 Acrylic Glass W1, A2757; plan docs/plans/plan_inv21_acrylic_glass.md): the frosted acrylic slab
   from board W0.4, standing before the Champagne Crystal wall, the skin's .k-ag-slab (ladder, frost, rendered edge, sprigs).
   The invitation lines, the names (stacked; on one line on a wide slab), the event days from the month grid (first – last;
   CSS only, so nothing jumps), and the script line from the number of event days. No venue line (D-121). */
.he201 { position: relative; height: 100vh; height: 100svh; display: grid; place-items: center; }
.he201 .he201__inv { max-width: 100%; }
.he201 .he201-names { display: flex; flex-direction: column; align-items: center; margin: 0; font-weight: 500; }
/* the names fit the slab: never wider than the words' box, whatever their length */
.he201 .he201-name { font-size: min(calc(38 * var(--ag-u)), calc((var(--ag-sw) - 3.2 * var(--ag-E) - 40 * var(--ag-u)) / (var(--he201-len, 6) * .86))); line-height: 1.02; }
.he201 .he201-and { margin: calc(-2 * var(--ag-u)) 0 calc(4 * var(--ag-u)); }
.he201 .he201__line { margin-top: calc(2 * var(--ag-u)); }
.he201 .he201__date { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--ag-u)); margin-top: calc(22 * var(--ag-u)); white-space: nowrap; }
.he201 .he201__side { width: calc(64 * var(--ag-u)); font: 600 calc(8.8 * var(--ag-u))/1 var(--k-font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ag-ink-2); }
.he201 .he201__side:first-child { text-align: right; }
.he201 .he201__side:last-child { text-align: left; padding-left: .22em; }
.he201 .he201__date > i { width: 1px; height: calc(40 * var(--ag-u)); background: linear-gradient(transparent, var(--ag-gold-2), transparent); flex: none; }
/* the event days: the first and the last, with an en dash; one day alone stays alone */
.he201 .he201__days > b { display: none; font-weight: inherit; }
.he201 .he201__days > b:first-child, .he201 .he201__days > b:last-child { display: inline; }
.he201 .he201__days > b:first-child:not(:last-child)::after { content: "\2009\2013\2009"; }
.he201 .he201__kick { margin-top: calc(10 * var(--ag-u)); font-size: calc(24 * var(--ag-u)); line-height: 1.1; }
.he201 .he201__kick > span { display: none; }
.he201 .he201__kick > .he201__k1 { display: inline; }
.he201:has(.he201__days > b:nth-child(2)) .he201__kick > .he201__k1 { display: none; }
.he201:has(.he201__days > b:nth-child(2):last-child) .he201__kick > .he201__k2,
.he201:has(.he201__days > b:nth-child(3):last-child) .he201__kick > .he201__k3,
.he201:has(.he201__days > b:nth-child(4):last-child) .he201__kick > .he201__k4,
.he201:has(.he201__days > b:nth-child(5):last-child) .he201__kick > .he201__k5,
.he201:has(.he201__days > b:nth-child(6)) .he201__kick > .he201__k6 { display: inline; }
/* a wide slab (wider than 1.2 x its height: laptops): the names on one line, more air, longer rules */
@media (min-aspect-ratio: 112/100) {
  .he201 .he201-names { flex-direction: row; align-items: center; gap: calc(4 * var(--ag-u)); }
  .he201 .he201-name { font-size: min(calc(38 * var(--ag-u)), calc((var(--ag-sw) - 3.2 * var(--ag-E) - 200 * var(--ag-u)) / (var(--he201-len, 6) * 1.72))); }
  /* the script's swashes reach past the line box: pad the gold fill's box (background-clip) and give the room back */
  .he201 .he201-and { line-height: 1; padding: .32em .24em .2em; margin: -.32em calc(10 * var(--ag-u) - .24em) -.2em; }
  .he201 .he201__rule { width: calc(160 * var(--ag-u)); margin: calc(18 * var(--ag-u)) auto; }
}

/* W2.1 (A2798, the owner on the iPhone: "as the envelope drops, there is this long slab, and then suddenly it cuts to the
   short, and the second one appears at the bottom"). On a touch screen:
   1. The slab's frost is a picture inside the glass, placed where the screen-fixed one sits at rest (INV-03's iPhone rule,
      D-199). The opener's rising card is the same picture (op201__cardfrost), so the two are the same pixels whatever the
      phone's toolbar does: iOS 26 draws fixed layers only down to its floating bar, and the page runs on beneath it.
   2. A band of the wall under the slab (padding: the slab stays centred in its first 100svh), so the invitation's pane
      never shows under the floating bar on the first screen. */
@media (hover: none) and (pointer: coarse) {
  .he201 { box-sizing: content-box; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .he201 .he201__slab > .k-ag-mist::before { position: absolute; top: calc(var(--ag-sh) / 2 - 50svh); right: auto; left: calc(var(--ag-sw) / 2 - 50vw); width: 100vw; }
}

/* W2.2 (A2802, the owner's pick "Halo breathes"): the warm glow round the slab brightens and dims very slowly, like candlelight in
   the room. Behind the slab (the frost covers its middle), inside the hero's box (no sideways scroll); opacity only. It runs only
   while the hero is on screen (is-awake) and holds still while the page moves (is-hold), both set by layer/particles/200, which
   runs only after the tap and never in lite or Reduce motion. */
/* the glow is the slab's own shape (its size, its corner) giving off a soft warm shadow; the shadow is painted once and only its
   opacity moves (a shadow never widens the page) */
.he201::before { content: ""; position: absolute; left: 50%; top: 50vh; top: 50svh; width: var(--ag-sw); height: var(--ag-sh); translate: -50% -50%;
  border-radius: calc(.062 * min(var(--ag-sw), calc(.58 * var(--ag-sh)))); pointer-events: none; opacity: 0;
  box-shadow: 0 0 calc(26px * var(--ag-z)) calc(6px * var(--ag-z)) rgb(255 214 158 / .5), 0 0 calc(80px * var(--ag-z)) calc(18px * var(--ag-z)) rgb(255 206 140 / .32); }
.he201.is-awake::before { animation: he201-breathe 11s ease-in-out infinite; }
.he201.is-hold::before { animation-play-state: paused; }
@keyframes he201-breathe { 0%, 100% { opacity: 0; } 22% { opacity: .55; } 41% { opacity: .3; } 63% { opacity: .9; } 82% { opacity: .45; } }

