/* Hero (2026-11-01, trimmed 2026-11-03): one section, two looks chosen by data-bg:
   stage = helmet canary and outlined wordmark (default), photo = the real truck photo, in three crops toward the display.
   The live alert and yellow brand looks were dropped on the 2026-11-03 call. hero.js swaps the look, the crop and the
   headline; the test selector shows off the live site only.
   Desktop: 1rem = 100px of the 1440 design. */
.lh { position: relative; overflow: hidden; background: var(--charcoal); color: #fff; padding: .96rem 1.12rem; display: grid; align-items: center; min-height: min(6.80rem, calc(100vh - var(--header, 1.00rem))); }
.lh h1 { font: .64rem/1.06 "MD SemiBold", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.03em; text-wrap: balance; margin: 0; }
.lh .accent { color: var(--yellow); }
.lh-sub { margin-top: .28rem; font: .22rem/1.45 "MD Regular", "Helvetica Neue", Arial, sans-serif; color: #c9ced3; max-width: 5.60rem; text-wrap: pretty; }
.lh-actions { margin-top: .44rem; display: flex; align-items: center; gap: .36rem; flex-wrap: wrap; }
.lh-text { position: relative; z-index: 2; max-width: 7.00rem; }
.lh-photo-bg, .lh-canary, .lh-outline { display: none; }

/* stage */
.lh[data-bg="stage"] { align-items: start; padding-bottom: 2.20rem; min-height: min(7.40rem, calc(100vh - var(--header, 1.00rem))); }
.lh[data-bg="stage"] .lh-canary { display: block; position: absolute; right: 1.00rem; bottom: .30rem; width: 3.70rem; height: auto; z-index: 1; }
.lh[data-bg="stage"] .lh-outline { display: block; position: absolute; left: .40rem; bottom: .30rem; width: 10.01rem; height: auto; opacity: .95; z-index: 0; }

/* photo */
.lh[data-bg="photo"] .lh-photo-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.lh[data-bg="photo"] .lh-photo-bg[data-crop="3"] { object-position: 50% 80%; }
.lh[data-bg="photo"]::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 16, 19, .92) 0%, rgba(14, 16, 19, .78) 38%, rgba(14, 16, 19, .15) 72%, rgba(14, 16, 19, 0) 100%); }
.lh[data-bg="photo"] .lh-sub { color: #dde1e4; }


/* the test selector: a small pill at the bottom left, a panel above it */
.hx { position: fixed; z-index: 60; left: max(.16rem, env(safe-area-inset-left, 0px)); bottom: calc(.16rem + env(safe-area-inset-bottom, 0px)); font: 13px/1.3 "MD Medium", system-ui, sans-serif; color: #1e1f22; }
.hx-toggle { border: 1px solid rgba(0, 0, 0, .15); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-radius: 99px; padding: 7px 12px; font: inherit; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.hx-panel { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); display: grid; gap: 12px; }
.hx-panel[hidden] { display: none; }
.hx-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.hx-panel legend { font: 11px/1 "MD SemiBold", system-ui; letter-spacing: .08em; text-transform: uppercase; color: #6a6f76; margin-bottom: 4px; }
.hx-panel label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.hx-panel input { margin-top: 2px; accent-color: #1e1f22; }
.hx-note { font-size: 11.5px; color: #6a6f76; }
.hx-toggle:focus-visible, .hx-panel input:focus-visible { outline: 2px solid #1e1f22; outline-offset: 2px; }

@media (max-width: 1024px) {
  .lh { padding: .40rem .24rem .48rem; min-height: 0; }
  .lh h1 { font-size: .36rem; line-height: 1.08; }
  .lh-sub { font-size: .16rem; margin-top: .16rem; }
  .lh-actions { margin-top: .26rem; gap: .20rem; }
  .lh[data-bg="stage"] { padding-top: .40rem; padding-bottom: 1.20rem; min-height: 0; }
  .lh[data-bg="stage"] .lh-canary { width: 1.10rem; right: .22rem; bottom: .26rem; }
  .lh[data-bg="stage"] .lh-outline { width: 3.50rem; left: .20rem; bottom: .30rem; }
  /* phones and tablets: the whole 16:9 crop on top, so the display stays in view; the text starts below it */
  .lh[data-bg="photo"] { padding-top: calc(56.25vw + .12rem); }
  .lh[data-bg="photo"] .lh-photo-bg, .lh[data-bg="photo"] .lh-photo-bg[data-crop="3"] { height: 56.25vw; object-position: 50% 50%; }
  .lh[data-bg="photo"]::before { background: linear-gradient(180deg, rgba(14, 16, 19, 0) 0, rgba(14, 16, 19, 0) 40vw, var(--charcoal) 56.25vw); }
  .hx { font-size: 12px; }
}

/* The helmet light (2026-11-01, Igor): a click on the lamp turns the hero light; another click turns it back to dark.
   The lamp box matches the bird picture's box, and the button sits on the lamp (59% across, 79% down). */
.lh-lampbox { display: none; }
.lh[data-bg="stage"] .lh-lampbox { display: block; position: absolute; right: 1.00rem; bottom: .30rem; width: 3.70rem; aspect-ratio: 469 / 496; z-index: 3; pointer-events: none; }
.lh-lamp { position: absolute; left: 58.6%; top: 78.6%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; padding: 0;
  border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; transition: box-shadow .35s ease; }
.lh-lamp:hover { box-shadow: 0 0 .30rem .08rem rgba(255, 229, 51, .55); }
.lh-lamp:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.lh::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(ellipse 70% 90% at 82% 92%, #fffdf3 0%, #fbf6e3 45%, #f3efe2 100%); }
.lh-text, .lh-canary, .lh-outline { transition: color .5s ease, filter .5s ease, opacity .5s ease; }
.lh[data-bg="stage"][data-light="on"]::after { opacity: 1; }
.lh[data-bg="stage"][data-light="on"] { color: var(--ink); }
.lh[data-bg="stage"][data-light="on"] .lh-sub { color: #3b3b33; }
.lh[data-bg="stage"][data-light="on"] .accent { color: inherit; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); }
.lh[data-bg="stage"][data-light="on"] .lh-outline { filter: brightness(0); opacity: .12; }
.lh[data-bg="stage"][data-light="on"] .v6-watch { color: var(--ink); }
.lh[data-bg="stage"][data-light="on"] .v6-play { border-color: var(--ink); }
.lh[data-bg="stage"][data-light="on"] .lh-lamp { box-shadow: 0 0 .40rem .14rem rgba(255, 229, 51, .85), 0 0 1.40rem .50rem rgba(255, 229, 51, .35); }
@media (max-width: 1024px) {
  .lh[data-bg="stage"] .lh-lampbox { width: 1.10rem; right: .22rem; bottom: .26rem; }
  .lh-lamp { width: 26%; }
}
@media (prefers-reduced-motion: reduce) { .lh::after, .lh-text, .lh-canary, .lh-outline, .lh-lamp { transition: none; } }
.lh[data-bg="stage"] .lh-outline { z-index: 1; }   /* above the light layer */
.lh[data-bg="stage"][data-light="on"] .lh-canary { filter: drop-shadow(0 .02rem .02rem rgba(37, 37, 37, .35)) drop-shadow(0 .10rem .24rem rgba(120, 90, 0, .18)); }
.lh[data-bg="stage"][data-light="on"] .v6-play::after { border-left-color: var(--ink, #1e1f22); }

/* Light hero: the wordmark turns solid dark so it reads on the light background (Igor 2026-11-01) */
.lh-solid { display: none; }
.lh[data-bg="stage"] .lh-solid { display: block; position: absolute; left: .40rem; bottom: .30rem; width: 10.01rem; height: auto; z-index: 1; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.lh[data-bg="stage"][data-light="on"] .lh-solid { opacity: .10; }
.lh[data-bg="stage"][data-light="on"] .lh-outline { opacity: 0; }
@media (max-width: 1024px) { .lh[data-bg="stage"] .lh-solid { width: 3.50rem; left: .20rem; bottom: .30rem; } }
