/*
 * Formal homepage hero r4: the verified preview r4 1-over-2 collage,
 * adapted only to the formal hero photo slot. The same three team photos as
 * r3, but the collage is much larger and the photos overlap instead of
 * sitting in separate thumbnail cells.
 *
 * Loaded from a formal-specific public filename (formal-r4) because public
 * CSS is cached for seven days; the formal page must not reuse the preview
 * r4 href, and the old single-image hero must not be cached back. The rules
 * below are the verified preview r4 cascade unchanged.
 *
 * Cascade hardening: the shared ecosystem stylesheet (not editable) pins
 *   .heroVisual { height:360px; overflow:hidden }
 *   .heroVisual img { width:100%; height:100%; object-fit: <crop> }
 *   @media (max-width:640px){ .heroVisual { height:240px } }
 * `.heroGrid > .heroVisual` (0,2,0) beats those without `!important`, and the
 * mobile block repeats height:auto / overflow:visible on purpose.
 * Collage images use `.heroVisual .hp-shot img` (0,2,1), which beats
 * `.heroVisual img` (0,1,1). They keep object-fit:contain so no source photo
 * is cropped.
 *
 * Geometry (desktop): the cluster is the hero column. The top shot is 100%
 * wide. Each lower shot is 128% of one of the two half-columns (= 64% of the
 * cluster), so the pair covers 128% of the cluster minus the pull-in. They are
 * nudged outward (grass 34px left, beach up to 56px right) so only a small
 * strip overlaps in the middle. The beach pull-in shrinks on narrower
 * desktop widths with clamp() so the page never spills horizontally. Both are pulled up 55px behind the top shot, whose
 * bottom pavement/banner is empty. Ordering: top (z3) over beach (z2) over
 * grass (z1), so the standing queue in the stairs photo is never covered.
 */

.heroGrid > .heroVisual{
  height:auto;
  min-height:0;
  padding:2px 0;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.heroVisual .heroCollage{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:start;
  gap:0;
  padding:0;
  overflow:visible;
}

.heroVisual .hp-shot{
  display:block;
  margin:0;
  padding:4px;
  overflow:visible;
  background:#f3ece6;
  border:1px solid #f1e4da;
  border-radius:14px;
  box-shadow:0 12px 28px #c947001f,0 2px 6px #2b211c14;
  transform-origin:50% 50%;
}

.heroVisual .hp-shot img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
  border-radius:9px;
  background:#f3ece6;
}

.heroVisual .hp-shot--top{
  grid-column:1/-1;
  grid-row:1;
  width:100%;
  z-index:3;
  transform:rotate(-2.6deg);
}

.heroVisual .hp-shot--top img{
  aspect-ratio:1600/1067;
}

.heroVisual .hp-shot--grass{
  grid-column:1;
  grid-row:2;
  width:128%;
  justify-self:start;
  margin-top:-55px;
  z-index:1;
  transform:translateX(-34px) rotate(3.4deg);
}

.heroVisual .hp-shot--grass img{
  aspect-ratio:1600/900;
}

.heroVisual .hp-shot--beach{
  grid-column:2;
  grid-row:2;
  width:128%;
  justify-self:end;
  margin-top:-55px;
  z-index:2;
  transform:translateX(clamp(18px, calc(50vw - 582px), 56px)) rotate(-3deg);
}

.heroVisual .hp-shot--beach img{
  aspect-ratio:1600/1200;
}

@media (max-width: 640px){
  /* Re-assert the box overrides here: the ecosystem file has a mobile
     `.heroVisual{height:240px}` rule, and future stylesheet ordering changes
     must not be able to bring the clipped 240px card back. */
  .heroGrid > .heroVisual{
    height:auto;
    min-height:0;
    padding:2px 0;
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .heroVisual .heroCollage{
    gap:0;
    padding:0;
    overflow:visible;
  }

  .heroVisual .hp-shot{
    padding:3px;
    border-radius:10px;
    box-shadow:0 7px 16px #c947001a,0 1px 3px #2b211c12;
  }

  /* Smaller pull-in and tilt so the pair stays inside a 400px viewport:
     120% of a half-column = 60% of the cluster, with 12px side bleed. */
  .heroVisual .hp-shot--top{transform:rotate(-1.2deg)}

  .heroVisual .hp-shot--grass{
    width:120%;
    margin-top:-40px;
    transform:translateX(-12px) rotate(1.7deg);
  }

  .heroVisual .hp-shot--beach{
    width:120%;
    margin-top:-40px;
    transform:translateX(12px) rotate(-1.5deg);
  }

  .heroVisual .hp-shot img{border-radius:7px}
}
