/* 5Four additions. Nothing here changes the design; it supports the port. */

/* Webflow emits width but never height. We ship both so the browser can reserve space.
   The attributes are PRESENTATIONAL HINTS, so they lose to any real CSS rule -- which is what
   we want here, because Webflow's own stylesheet carries
       img{width:100%;max-width:100%;height:100%;display:inline-block}
   and sizes most images by filling their container.
   This rule used to be a bare "img { height: auto }". Same specificity as Webflow's, loaded
   later, so it won on EVERY image and replaced container-fill with the natural ratio: the CTA
   background rendered 146px too tall on every page and 52 of 160 images were the wrong size.
   :where() pins it to zero specificity, so Webflow's rule always wins and this only applies
   where nothing else sets a height. Measured by scripts/image-parity.mjs against the live site. */
:where(img[width][height]) { height: auto; }

/* Lottie: the poster is the settled artwork and is always in the DOM, so the element is
   never an empty box. The player replaces it only once it has actually rendered. */
[data-lottie-host] { position: relative; }
[data-lottie-host] > svg { display: block; width: 100%; height: auto; }
.lottie_poster { display: block; width: 100%; height: auto; }
[data-lottie-host][data-lottie-ready] > .lottie_poster { display: none; }

/* Keyboard users need a way past the header on every page. The capture had no skip link. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  padding: .75rem 1.25rem; background: #0b3d2c; color: #fff;
  text-decoration: none; border-radius: 0 0 .5rem 0;
  /* 16px in absolute units, not 1rem: Webflow scales the ROOT font-size with the viewport,
     so at 320px 1rem is 11.9px and the skip link became the smallest text on the page. */
  font-size: 16px; line-height: 1.4;
}
.skip-link:focus { left: 0; }

/* Hover interactions, read out of Webflow's own IX2 data rather than guessed:
   e-2 on .grid-item and e-3 on .inspire_item_wrap both run action list a-3, a TRANSFORM_MOVE
   to x/y -0.75rem over 500ms with outCirc easing; a-2/a-4 return to 0,0 over 400ms.
   These were JavaScript on the live site and are plain CSS here. */
.grid-item,
.inspire_item_wrap {
  transition: transform 400ms cubic-bezier(0.075, 0.82, 0.165, 1);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .grid-item:hover,
  .inspire_item_wrap:hover,
  .grid-item:focus-within,
  .inspire_item_wrap:focus-within {
    transform: translate(-0.75rem, -0.75rem);
    transition-duration: 500ms;
  }
}

/* The mobile menu is open: stop the page behind it scrolling. */
html.nav-open, html.nav-open body { overflow: hidden; }

/* Visible only to screen readers. Used to give the repeated "Learn More" links on /writing
   an accessible name that says where each one goes. */
.u-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The milestone reveal on /about is applied from JavaScript, never from here, so that a
   failed or blocked script leaves the content visible rather than permanently faint. */
