/* The hero: direction D5 from ~/Developer/anemone-heroes-1103/d5, ported as
   is (Kevin's pick, 2026-11-03). A flat-lay at true scale on the table: the
   iPhone is the ruler (7.8 cm = 290 design px at 1440, 37.18 px per cm),
   with the watch and the MacBook lid. Everything the hero shows is in
   /assets/hero/. To swap a prop, rerun d5/make.py there (see its
   stock/README.md) and copy its assets/*.webp and assets/sizes.css here.
   The table texture is on the page body (site.css), so the hero and the
   rest of the page are one surface, and the lid lies
   on past the hero's bottom edge instead of being cut by it. */
.hero { position: relative; min-height: 100svh; overflow-x: clip; }
.scene { position: relative; width: calc(1440 * var(--s)); height: calc(900 * var(--s)); margin: 0 auto; }
/* every piece is placed by the center of its canvas in design pixels; its
   width (--cw, canvas including the shadow pad) comes from sizes.css,
   computed from the object's real size. --m shrinks the lay on phones. */
.p { position: absolute; display: block; height: auto; max-width: none; transform: translate(-50%, -50%);
  left: calc(var(--x) * var(--s)); top: calc(var(--y) * var(--s)); width: calc(var(--cw) * var(--m, 1) * var(--s)); }
.copy { position: absolute; z-index: 4; left: calc(72 * var(--s)); top: calc(118 * var(--s)); width: calc(620 * var(--s)); }
.hero h1 { margin: 0 0 calc(16 * var(--s)); font-size: calc(54 * var(--s)); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
.hero .line { margin: 0 0 calc(18 * var(--s)); font-size: calc(19 * var(--s)); line-height: 1.4; color: var(--ink-2); max-width: 32ch; text-wrap: pretty; }
.hero .store-soon { font-size: calc(15 * var(--s)); }
.hero .store-soon svg { width: calc(18 * var(--s)); height: calc(18 * var(--s)); }
/* iPad portrait and small windows (2026-11-10): the copy at full size
   above the flat-lay instead of scaled down beside it, and the hero only
   as tall as its scene */
@media (min-width: 761px) and (max-width: 999px) {
  .hero { min-height: 0; }
  .scene { height: calc(900 * var(--s) + 200px); }
  .p { top: calc(var(--y) * var(--s) + 190px); }
  .copy { left: 24px; top: 100px; width: min(640px, 100% - 48px); }
  .hero h1 { font-size: 44px; margin-bottom: 14px; }
  .hero .line { font-size: 19px; max-width: 40ch; margin-bottom: 18px; }
  .hero .store-badge img { width: 150px; }
}

.mac   { --x: 1270; --y: 610; z-index: 1; }
.phone { --x: 430;  --y: 640; z-index: 1; }
.watch { --x: 150;  --y: 745; z-index: 1; }
/* Kevin, 2026-11-04: the hero keeps only the devices; the anemone, the
   sprig and the rings moved down the page as decoration (site.css .o-prop). */

@media (max-width: 760px) {
  .hero { --s: calc(100vw / 390); min-height: 0; }
  .copy { left: 16px; top: 92px; width: calc(100vw - 32px); }
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero .line { font-size: 17px; max-width: 30ch; }
  .hero .store-soon { font-size: 15px; } .hero .store-soon svg { width: 18px; height: 18px; }
  .p { --m: 0.655; }
  /* the Mac lid stays off the phone hero (2026-11-10): at this width its
     text was a strip too small to read, and the Mac has its own section */
  .mac { display: none; }
  .scene { height: calc(860 * var(--s)); }
  .phone { --x: 125; --y: 590; }
  .watch { --x: 300; --y: 500; }
  .mac   { --x: 330; --y: 1030; }
}
