/* v3 hero shell: the frame shared by hero_home and hero_courier (class `v3-hero-shell` on the section).
   Figma: Hero section 11827:33540 / 12161:26171 (1440, 712 high incl. the 62px header), mobile 12192:31569 / 12192:31801 (430).
   --u = 1 design px of the 1316px content width: the hero scales as one piece between 1025 and 1440 (clamped to 1440).
   Contents: dashed guide lines (the 652/320/320 grid of the design) and the partners row with the logo marquee
   (the track/logos classes come from css/v3/sections/hero.css). The cards stay in the section files. */
.v3-hero-shell {
  --u: calc((min(100cqw, 1440px) - 2 * var(--v3-gutter)) / 1316);
  --v3-hs-header: var(--v3-header-h, 62px);
  --v3-hs-dash: var(--v3-gray-50);
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--v3-hs-header));   /* the header is transparent and sits on top of the hero (see header.css) */
  padding-top: calc(var(--v3-hs-header) + 32px);
  padding-bottom: 0;
  background: var(--v3-bg-light);
}
.v3-hero-shell::before,
.v3-hero-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  height: 1px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--v3-hs-dash) 0 3px, transparent 3px 5px);
}
.v3-hero-shell::before { top: var(--v3-hs-header); }
.v3-hero-shell::after { bottom: 0; }

/* ---- dashed guide lines: the box has the content width ---- */
.v3-hero-shell__lines {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: 652fr 320fr 320fr;
  column-gap: 12px;
  pointer-events: none;
}
.v3-hero-shell__line {
  grid-row: 1;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--v3-hs-dash) 0 3px, transparent 3px 5px);
}
/* outer lines start below the header, which draws its own part (header.css) */
.v3-hero-shell__line--outer-l { grid-column: 1; justify-self: start; margin-left: -12px; margin-top: var(--v3-hs-header); }
.v3-hero-shell__line--outer-r { grid-column: 3; justify-self: end; margin-right: -12px; margin-top: var(--v3-hs-header); }
.v3-hero-shell__line--logos { grid-column: 1; justify-self: start; margin-left: calc(326 * var(--u)); margin-top: var(--v3-hs-header); }
.v3-hero-shell__line--gap-1,
.v3-hero-shell__line--gap-2 { justify-self: start; margin-left: -6px; margin-top: var(--v3-hs-header); margin-bottom: 85px; }
.v3-hero-shell__line--gap-1 { grid-column: 2; }
.v3-hero-shell__line--gap-2 { grid-column: 3; }

/* ---- partners row ---- */
.v3-hero-shell__partners {
  position: relative;
  display: grid;
  grid-template-columns: calc(326 * var(--u)) minmax(0, 1fr);
  align-items: center;
  margin-top: 32px;
  padding-block: 24px;
}
.v3-hero-shell__partners::before {   /* line above the logos, from the logos column to the right guide */
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--v3-gutter) + 326 * var(--u));
  right: calc(var(--v3-gutter) - 12px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--v3-hs-dash) 0 3px, transparent 3px 5px);
}
.v3-hero-shell__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.v3-hero-shell__label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--v3-primary);
}
.v3-hero-shell__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 72px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 72px), transparent 100%);
}
.v3-hero-shell__marquee:hover .v3-hero__track { animation-play-state: paused; }

/* ---- <= 1024: mobile composition (Figma 430) ---- */
@media (max-width: 1024px) {
  .v3-hero-shell { padding-top: calc(var(--v3-hs-header) + 12px); }
  .v3-hero-shell__lines { grid-template-columns: minmax(0, 1fr); }
  .v3-hero-shell__line--outer-l,
  .v3-hero-shell__line--outer-r { grid-column: 1; margin-inline: -4px; }
  .v3-hero-shell__line--logos,
  .v3-hero-shell__line--gap-1,
  .v3-hero-shell__line--gap-2,
  .v3-hero-shell__partners::before { display: none; }

  .v3-hero-shell__partners { display: block; margin-top: 0; padding-block: 20px; }
  .v3-hero-shell__label { display: none; }
  .v3-hero-shell__marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55px, #000 calc(100% - 55px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 55px, #000 calc(100% - 55px), transparent 100%);
  }
}
