/* .hero — the full-window hero (spec §5.3): the picture, the video and the shade stacked under the
   content ([ position-absolute inset-0 ] layers in the markup), and the trust row at its foot. */
/* lint-allow: block-budget — the trust row lives only in the hero, so it stays in this file; Mitchell, S6 2026-11-11: "I would accept a little bit more … above the eighty line limit to not break out a new file" */

/* The window's height up to 1080px; the content starts under the fixed header. */
.hero > .cover {
  --cover-min-block-size: min(100svb, var(--hero-max-h));
  --cover-padding: calc(var(--header-height) + var(--border-1) + var(--space-lg)) 0 var(--space-lg);  /* sides: .page-gutter (utilities load after compositions) */
  --cover-space: var(--space-lg);
}

/* Desktop (past the ☰ band, ruled): up to --hero-foot-room more under the button than over the
   headline. An empty flex item between the content and the trust row grows first, before the
   content's auto margins share the rest, so it gives way by itself on a short window. */
@media (min-width: 74.8751em) {
  .hero > .cover::before {
    content: "";
    flex: 1 1 0;
    max-block-size: var(--hero-foot-room);
  }
}

/* Headline, rule, copy, button: three equal gaps, halfway between --space-lg and --space-xl (Mitchell,
   2026-11-04: the hero fits a 1470x830 window); items keep their own width (the button is not a bar). */
.hero .centered {
  --stack-space: calc((var(--space-lg) + var(--space-xl)) / 2);
  align-items: start;
  order: -1;   /* before the cover's ::before spacer */
}

/* The hero's button: the base button, raised by the glow (decision 36: one size dial; the base). */
.hero .btn {
  --btn-glow: var(--glow) var(--glow-accent);
}

/* The headline's four lines. Tried: the plain balanced wrap (right on phones, three lines from
   720px) and a width cap (a 0.4em window between the longest line and the next word, so it breaks
   with the font). Kept: each span a line once a phone is past 30em. */
@media (min-width: 30em) {
  .hero h1 > span {
    display: block;
  }
}

/* The trust row: four proof points ([ grid ]). Four columns, two up to 70em, none on phones and
   phones on their side (ruled bands, Mitchell 2026-10-17). Tried: auto-fill (three columns around
   1120px). Lines between the items, not gaps, so no column gap; a row gap for the 2 × 2. */
.hero ul {
  --grid-placement: 4;
  --grid-min-item-size: 0%;   /* a unit: a bare 0 inside the grid's min(…, 100%) voids its columns */
  --gutter: var(--space-s) 0;
  padding-block: var(--space-s) var(--space-md);
  border-block-start: var(--border-1) solid var(--hairline-color);
  font-size: var(--step--1);
  anchor-name: --trust; /* the pause button sits on its line */
}

/* A line before each item but the first in its row. */
.hero li + li {
  padding-inline-start: var(--space-md);
  border-inline-start: var(--border-1) solid var(--hairline-color);
}



.hero li img {
  block-size: var(--space-s);
}

@media (max-width: 70em) {
  .hero ul {
    --grid-placement: 2;
  }

  .hero li:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

/* No trust row (phones, phones on their side): the content where it sat with the
   row (Mitchell, 2026-11-06), its gap kept as foot room. */
@media (max-width: 45em), (max-width: 70em) and (max-height: 31.25em) {
  .hero > .cover {
    padding-block-end: calc(2 * var(--space-lg));
  }

  .hero ul {
    display: none;
  }
}

/* The pause button: bottom right, just above the trust row's line (Mitchell, 2026-11-18: under it
   "it looks lost"); no row (phones) or no anchor support: the corner ([ bottom-2xs ]). The icon ends
   on the page side (centred in its 44px square, as ☰). */
.hero > .icon-button {
  inset-block-end: calc(anchor(--trust top, 0px) + var(--space-2xs));
  inset-inline-end: calc(var(--page-side-right) + (var(--space-md) - var(--space-xl)) / 2);
}

/* The still picture and the video over it ([ frame ] sizes and crops the video; its 16:9 is turned
   off, the layer's insets give the size), centre
   right; the 9:16 phone file centred, by the state the controller sets (it follows the file, not
   the width); on phones the picture at 80% (Mitchell, 2026-10-15). */
.hero .media {
  aspect-ratio: auto;
  background: url("/assets/hero-bg-384bd2c5.webp") right / cover;
}

.hero video {
  object-position: right;
}

.hero[data-state~="phone"] video {
  object-position: center;
}

@media (max-width: 45em) {
  .hero .media {
    background-position: 80%;
  }

  /* the copy's desktop line break: phones wrap it themselves */
  .hero .intro br {
    display: none;
  }
}

/* The shade over the picture: the text side darkened, the foot faded into the navy, a deep-space
   tint over all. */
.hero .shade {
  background:
    linear-gradient(to right, var(--gradient-side-fade)), /* past 1920 only (gradients.css) */
    linear-gradient(to right, var(--gradient-text-side)),
    linear-gradient(to top, var(--gradient-edge-fade)) bottom / 100% 60% no-repeat,
    hsl(var(--color-primary-base-hsl) / var(--alpha-20));
}
