/* Home hero: full-bleed dark field with one cleared porter iris on the right.
   Source: live /iris/assets/iris-porter-1000.webp (1000x1000, md5 cbd35731…),
   our own sample, not a customer order. Never upscaled. Rendered eye is
   capped at 1000 CSS px at 1x and 500 CSS px at 2x (333px at 3x) so device
   pixels never exceed the 1000px source. Leftover right-column space is
   filled by radial + linear --dark blends, not a dark rectangle. Phone
   hero hugs the copy (no 100svh); the eye sits behind the type. */

.page-home .hero-bleed{
  min-height:0;
  padding:0;
  align-items:center;
  background:var(--dark);
  position:relative;
  overflow:hidden;
}

/* Desktop: empty right-column spacer reserves room for the eye at 1x.
   Height still comes from the larger of the copy and this square. */
.page-home .hero-art{
  position:relative;
  max-width:none;
  width:100%;
  aspect-ratio:1/1;
  justify-self:stretch;
  align-self:center;
  min-height:0;
  max-height:none;
  background:transparent;
  overflow:visible;
  pointer-events:none;
}

.page-home a.hero-bg{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  text-decoration:none;
  color:inherit;
  overflow:hidden;
}
.page-home .hero-copy{position:relative;z-index:2}

/* picture is only a positioning frame — do not size it, or % widths on
   the img resolve against the picture and shrink the eye. */
.page-home a.hero-bg picture{
  position:absolute;
  inset:0;
  display:block;
  width:auto;
  height:auto;
  max-width:none;
  margin:0;
  padding:0;
  transform:none;
  mask-image:none;
  -webkit-mask-image:none;
}


/* Soft black field behind the eye, larger than the bitmap, so leftover
   right-column space (especially at 2x, when the eye is 500 CSS px) is
   the same artwork rather than a dark rectangle around a smaller square. */
.page-home a.hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(
    ellipse 72% 92% at calc(100% - 16px - min(1000px, calc(52vw - 16px)) / 2) 50%,
    #000 0%,
    #050504 42%,
    var(--dark) 76%
  );
}
.page-home a.hero-bg img{
  position:absolute;
  top:50%;
  right:16px;
  transform:translateY(-50%);
  display:block;
  width:min(1000px, calc(52vw - 16px));
  max-width:1000px;
  height:auto;
  aspect-ratio:1/1;
  object-fit:contain;
  /* Fade only the square's black corners (iris limb sits at ~71% of the
     farthest-corner gradient). The iris itself stays fully visible. */
  mask-image:radial-gradient(circle at 50% 50%, #000 70%, transparent 100%);
  -webkit-mask-image:radial-gradient(circle at 50% 50%, #000 70%, transparent 100%);
}

/* Strict DPR cap: CSS width * DPR <= 1000 source px. */
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2){
  .page-home a.hero-bg img{
    width:min(500px, calc(52vw - 16px));
    max-width:500px;
  }
}
@media (min-resolution: 3dppx), (-webkit-min-device-pixel-ratio: 3){
  .page-home a.hero-bg img{
    width:min(333px, calc(52vw - 16px));
    max-width:333px;
  }
}

/* Full-bleed scrim. The radial is anchored on the eye and reaches the
   far edges of the hero so leftover column space reads as the same field. */
.page-home a.hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 80% 90% at calc(100% - 16px - min(1000px, calc(52vw - 16px)) / 2) 50%,
      transparent 28%, rgba(12,11,9,.14) 48%, rgba(12,11,9,.5) 72%, var(--dark) 96%),
    linear-gradient(90deg,
      var(--dark) 0%,
      var(--dark) 26%,
      rgba(12,11,9,.86) 38%,
      rgba(12,11,9,.4) 56%,
      rgba(12,11,9,.1) 72%,
      transparent 88%);
}

/* At 2x the eye is 500 CSS px; retarget the radial and wash the leftover
   right-column gap so a smaller square does not read as a dark rectangle. */
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2){
  .page-home a.hero-bg::before{
    background:radial-gradient(
      ellipse 90% 100% at calc(100% - 16px - min(500px, calc(52vw - 16px)) / 2) 50%,
      #000 0%,
      #000 28%,
      #080706 52%,
      var(--dark) 80%
    );
  }
}
@media (min-resolution: 3dppx), (-webkit-min-device-pixel-ratio: 3){
  .page-home a.hero-bg::before{
    background:radial-gradient(
      ellipse 90% 100% at calc(100% - 16px - min(333px, calc(52vw - 16px)) / 2) 50%,
      #000 0%,
      #000 24%,
      #080706 50%,
      var(--dark) 78%
    );
  }
}
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2){
  .page-home a.hero-bg::after{
    background:
      radial-gradient(ellipse 95% 100% at calc(100% - 16px - min(500px, calc(52vw - 16px)) / 2) 50%,
        transparent 22%, rgba(12,11,9,.2) 44%, rgba(12,11,9,.62) 68%, var(--dark) 92%),
      linear-gradient(90deg,
        var(--dark) 0%,
        var(--dark) 28%,
        rgba(12,11,9,.88) 42%,
        rgba(12,11,9,.5) 62%,
        rgba(12,11,9,.18) 78%,
        transparent 96%);
  }
}
@media (min-resolution: 3dppx), (-webkit-min-device-pixel-ratio: 3){
  .page-home a.hero-bg::after{
    background:
      radial-gradient(ellipse 95% 100% at calc(100% - 16px - min(333px, calc(52vw - 16px)) / 2) 50%,
        transparent 18%, rgba(12,11,9,.22) 40%, rgba(12,11,9,.68) 66%, var(--dark) 90%),
      linear-gradient(90deg,
        var(--dark) 0%,
        var(--dark) 30%,
        rgba(12,11,9,.9) 46%,
        rgba(12,11,9,.55) 66%,
        rgba(12,11,9,.2) 80%,
        transparent 96%);
  }
}

@media (max-width:820px){
  /* Hug the copy: no 100svh, no vertical centering in a tall field. */
  .page-home .hero-art{display:none}
  .page-home .hero-bleed{
    min-height:0;
    align-items:start;
  }
  .page-home .hero-copy{
    justify-content:flex-start;
    padding:36px 20px 44px;
  }
  .page-home a.hero-bg img{
    /* Eye behind/beside the type, nearly full width at 1x, 16px inset. */
    width:min(1000px, calc(100vw - 24px));
    max-width:1000px;
    right:8px;
    top:50%;
    transform:translateY(-50%);
  }
  .page-home a.hero-bg::after{
    /* 17 Nov 2026: scrim lightened so the iris reads at 390/768; type
       re-measured and still WCAG AA (see evening-batch NOTES). */
    /* 18 Nov 2026 (Site Auditor, evening batch): darker band behind the lead line only (~40% of the hero
       height, 34-74%), so its worst pixel clears WCAG AA 4.5:1 at 320/390 (measured, see evening-batch-20261118 NOTES). */
    background:
      linear-gradient(180deg,
        transparent 34%, rgba(12,11,9,0.42) 42%, rgba(12,11,9,0.42) 64%, transparent 74%),
      radial-gradient(circle at 78% 50%,
        transparent 14%, rgba(12,11,9,0.16) 34%, rgba(12,11,9,0.62) 60%, var(--dark) 86%),
      linear-gradient(180deg,
        rgba(12,11,9,0.38) 0%,
        rgba(12,11,9,0.43) 22%,
        rgba(12,11,9,0.62) 50%,
        rgba(12,11,9,0.43) 78%,
        rgba(12,11,9,0.38) 100%),
      linear-gradient(90deg,
        var(--dark) 0%,
        rgba(12,11,9,0.86) 32%,
        rgba(12,11,9,0.44) 60%,
        transparent 88%);
  }
}
@media (max-width:820px) and (min-resolution: 2dppx),
       (max-width:820px) and (-webkit-min-device-pixel-ratio: 2){
  .page-home a.hero-bg img{
    width:min(500px, calc(100vw - 24px));
    max-width:500px;
    right:8px;
  }
}
@media (max-width:820px) and (min-resolution: 3dppx),
       (max-width:820px) and (-webkit-min-device-pixel-ratio: 3){
  .page-home a.hero-bg img{
    width:min(333px, calc(100vw - 24px));
    max-width:333px;
    right:8px;
  }
}

@media (prefers-reduced-motion:reduce){
  .page-home a.hero-bg img{transition:none}
}
