/* The homepage's moving canvas stays separate from the legal/support layouts. */
.hero {
  position: relative;
  isolation: isolate;
  width: min(1140px, calc(100% - 80px));
  margin: auto;
  overflow: hidden;
}
.hero-copy.wrap { width: 100%; margin: 0; position: relative; z-index: 2; }
.hero-art { isolation: auto; }
.item-field {
  --overscan: clamp(220px, 23vw, 650px);
  inset: calc(-1 * var(--overscan));
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  gap: 0;
  transform: translate3d(-40px, 20px, 0) rotate(-15deg);
  animation: field-drift 46s ease-in-out infinite alternate;
}
.field-item { width: 100%; height: 100%; min-height: 0; }
.field-item img {
  width: clamp(58px, 6vw, 112px);
  height: clamp(58px, 6vw, 112px);
  max-width: 85%;
  max-height: 85%;
  filter: none;
}
.motion-suspended .item-field { animation-play-state: paused; }
.motion-toggle {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 3;
  min-height: 44px;
  border: 1px solid #fff;
  border-radius: 24px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  background: #ffffffdb;
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.hero-art figcaption { margin-bottom: 55px; }
.hero-copy > * { animation: copy-enter .8s cubic-bezier(.22, 1, .36, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.has-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.has-motion .reveal.is-visible { opacity: 1; transform: none; }
.button { transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #24262c14; }
.button:active { transform: translateY(0); }
@keyframes field-drift {
  from { transform: translate3d(-40px, 20px, 0) rotate(-15deg); }
  to { transform: translate3d(40px, -20px, 0) rotate(-15deg); }
}
@keyframes copy-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 901px) {
  .hero {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: max(680px, calc(100svh - 83px));
    padding: 90px 0 115px;
    margin-bottom: 32px;
  }
  .hero-copy.wrap { width: min(1140px, calc(100% - 80px)); margin: auto; }
  .hero h1 { font-size: clamp(50px, 4.4vw, 68px); max-width: 650px; }
  .hero h1 span { color: #727985; }
  .hero-description { max-width: 430px; }
  .hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: -2;
  }
  .field-mask { mask-image: none; -webkit-mask-image: none; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(0deg, #f2f4f7 0%, #f2f4f700 22%, #f2f4f700 88%, #f2f4f770 100%),
      linear-gradient(90deg, #f2f4f7ed 0%, #f2f4f7f5 24%, #f2f4f7e6 40%, #f2f4f74d 64%, #f2f4f70a 100%);
  }
  .hero-art figcaption { display: none; }
  .motion-toggle { right: 32px; bottom: 26px; }
}
@media (min-width: 1600px) {
  .hero-copy.wrap { width: min(1360px, calc(100% - 120px)); }
  .header-inner.wrap { width: min(1360px, calc(100% - 120px)); }
}
@media (max-width: 900px) and (min-width: 601px) {
  .hero { width: calc(100% - 48px); }
  .motion-toggle { bottom: 14px; }
}
@media (max-width: 600px) {
  .hero { width: calc(100% - 40px); overflow: visible; }
  .hero-art { overflow: hidden; }
  .item-field { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(12, minmax(0, 1fr)); }
  .field-item img { width: 60px; height: 60px; }
  .hero-art figcaption { margin-bottom: 9px; }
  .motion-toggle { top: 3px; right: 0; bottom: auto; padding: 7px 12px; font-size: 11px; }
}
@media (prefers-reduced-transparency: reduce) {
  .motion-toggle { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .item-field, .hero-copy > * { animation: none !important; }
  .has-motion .reveal { opacity: 1; transform: none; transition: none; }
  .button:hover { transform: none; }
}
