/* about-next.html — the About hero in the homepage hero's texture.

   Loaded after main.css and about-next.css (which about.html also uses, so
   nothing here can live there). The flat gray slab becomes the same textured
   gray, with the same soft cursor halo, as the hero on index-next.html —
   both drawn by js/hero-texture.js.

   Two canvases share the one surface (.about-hero), so the halo runs across
   both without a seam:
     - .about-hero__bg, the slab itself, behind everything in the hero
     - .about-hero__knockout, the stepped block behind the title. It used to
       be an SVG filled with the slab's flat gray, which would now read as a
       smooth patch on the grain; it is the same path as a mask instead.

   Like the Work hero, the texture reaches up behind the site header and
   data-header-through on the section tells js/header-tone.js to turn the
   header transparent over it, so the grain carries on behind the logo and
   nav rather than stopping at a flat gray bar. */

.about-hero {
  /* The canvas below sits at z-index -1: behind the band, portrait and
     title, but above the slab's own flat gray. */
  isolation: isolate;
  /* Clip sideways only (the wordmark runs off both edges), so the texture
     can reach up behind the header. */
  overflow-x: clip;
  overflow-y: visible;
}

.about-hero__bg {
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--header-h));
  left: 0;
  width: 100%;
  height: calc(100% + var(--header-h));
  /* The slab's own corners, now that overflow no longer rounds them. */
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  /* Shown until the first frame, and for good with no WebGL. */
  background: var(--gray);
}

/* Size and position are main.css's (750 x 216 units, top left of the
   title), and so is display: none on phones, where the lines wrap. */
.about-hero__knockout {
  background: var(--gray);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 750 216' preserveAspectRatio='none'%3E%3Cpath d='M16 0 H425 A16 16 0 0 1 441 16 V56 A16 16 0 0 0 457 72 H663 A16 16 0 0 1 679 88 V128 A16 16 0 0 0 695 144 H734 A16 16 0 0 1 750 160 V200 A16 16 0 0 1 734 216 H16 A16 16 0 0 1 0 200 V16 A16 16 0 0 1 16 0 Z'/%3E%3C/svg%3E")
    0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 750 216' preserveAspectRatio='none'%3E%3Cpath d='M16 0 H425 A16 16 0 0 1 441 16 V56 A16 16 0 0 0 457 72 H663 A16 16 0 0 1 679 88 V128 A16 16 0 0 0 695 144 H734 A16 16 0 0 1 750 160 V200 A16 16 0 0 1 734 216 H16 A16 16 0 0 1 0 200 V16 A16 16 0 0 1 16 0 Z'/%3E%3C/svg%3E")
    0 0 / 100% 100% no-repeat;
}
