/* Background arcs: one decoration layer per page, drawn by /js/bg.js. It sits first inside <main>, behind every section
   and behind the ink line (.ink is z-index 1), never takes a click, adds no height, and is clipped on the layer itself.
   Phones (under 600px) and print get none. bg.js sets --bg-stroke (graphite, 1.3:1 to 2:1 on the wall). */
.bg-layer {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; overflow: clip;
  fill: none; stroke: var(--bg-stroke, color-mix(in oklch, var(--hair) 55%, var(--edge) 45%));
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 599.98px) { .bg-layer { display: none; } }
@media print { .bg-layer { display: none; } }

/* Hero background (Oscar's pick, 29 Nov 2026), drawn by /js/hero-bg.js: a second-room band from the red line to the end of the
   first block, and a marks layer (construction on the Call rings, one red sweep, the big outlined H, the 500 underline on home).
   main becomes its own stacking context so the band can sit under the text (z-index -1) and under the arcs. Phones and print: none. */
.hero-bg { position: absolute; left: 0; top: 0; pointer-events: none; }
.hero-bg--band { z-index: -1; width: 100%; background: var(--wall-2); }
.hero-bg--marks { z-index: 0; width: 100%; overflow: visible; }
.hero-bg__ul { fill: var(--accent); transform-box: fill-box; transform-origin: left center; }
@media (min-width: 600px) { main { isolation: isolate; } }
@media (prefers-reduced-motion: no-preference) { .hero-bg__ul { animation: hero-bg-pen 0.7s linear 0.2s both; } }
@keyframes hero-bg-pen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 599.98px) { .hero-bg:not(.hero-bg--ul) { display: none; } } /* phones keep only the 500 underline */
@media print { .hero-bg { display: none; } }
