.mosaic-hero {
  min-height: 660px;
  max-height: 1000px;
  background: var(--accent);
  --title-delay: 3.1s;
}

.mosaic-hero .hero-image {
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3px;
  animation: mosaic-camera-out 6.4s both cubic-bezier(.2, .5, .25, 1);
}

.mosaic-tile {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  animation: mosaic-photo-in 1.55s both cubic-bezier(.22, .7, .2, 1);
  animation-delay: var(--tile-delay, 0s);
}

.mosaic-hero .mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  transform: none;
  will-change: auto;
}

.mosaic-tile:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.mosaic-tile:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.mosaic-tile:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
.mosaic-tile:nth-child(4) { grid-area: 1 / 4 / 3 / 5; }
.mosaic-tile:nth-child(5) { grid-area: 2 / 1 / 4 / 2; }
.mosaic-tile:nth-child(6) { grid-area: 2 / 2 / 3 / 3; }
.mosaic-tile:nth-child(7) { grid-area: 2 / 3 / 3 / 4; }
.mosaic-tile:nth-child(8) { grid-area: 3 / 2 / 4 / 3; }
.mosaic-tile:nth-child(9) { grid-area: 3 / 3 / 4 / 4; }
.mosaic-tile:nth-child(10) { grid-area: 3 / 4 / 4 / 5; }

.mosaic-hero .hero-shade {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 47%, #211017a8 0%, #21101766 40%, #2110170d 78%),
    linear-gradient(180deg, #21101712 0%, #2110171f 55%, #211017d9 100%);
  animation: mosaic-shade-in 1.3s both cubic-bezier(.22, .7, .2, 1);
  animation-delay: calc(var(--title-delay) - .9s);
}

.mosaic-hero .hero-copy {
  inset: 0;
  z-index: 2;
  padding: 70px 24px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  animation: none;
}

.mosaic-hero .hero-copy .eyebrow {
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-shadow: 0 2px 12px #211017;
  animation: mosaic-eyebrow-in .85s both cubic-bezier(.22, .7, .2, 1);
  animation-delay: calc(var(--title-delay) - .2s);
}

.mosaic-hero h1 {
  font-size: clamp(76px, 8.5vw, 136px);
  line-height: .98;
  margin-top: 24px;
  text-shadow: 0 3px 28px #21101766;
}

.mosaic-hero .hero-line-mask {
  display: block;
  overflow: hidden;
  padding: 0 .08em .08em;
  margin-bottom: -.08em;
}

.mosaic-hero .hero-line {
  display: block;
  animation: mosaic-line-in 1.15s both cubic-bezier(.22, .7, .2, 1);
  animation-delay: var(--title-delay);
}

.mosaic-hero .hero-line-emphasis {
  font-style: italic;
  animation-duration: 1.25s;
  animation-delay: calc(var(--title-delay) + .26s);
}

.mosaic-hero .hero-bottom {
  z-index: 3;
  border-top: 1px solid #ffffff66;
  padding-top: 24px;
  animation: mosaic-footer-in 1s both cubic-bezier(.22, .7, .2, 1);
  animation-delay: calc(var(--title-delay) + .58s);
}

.mosaic-hero .hero-bottom > p { font-size: 17px; }
.mosaic-hero .hero-scroll:focus-visible { outline-color: #fff; }
.mosaic-hero:focus-within .hero-bottom { animation: none; }

.mosaic-skip {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 20px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #ffffff99;
  background: #921f32b3;
  color: white;
  font: 11px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
}
.mosaic-skip[hidden] { display: none; }
.mosaic-skip:hover { background: var(--accent); }
.mosaic-skip:focus-visible { outline: 2px solid white; outline-offset: 3px; }

@keyframes mosaic-camera-out {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

@keyframes mosaic-photo-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mosaic-shade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mosaic-eyebrow-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mosaic-line-in {
  from { opacity: 0; transform: translateY(105%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mosaic-footer-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.mosaic-still .hero-image,
.mosaic-still .mosaic-tile,
.mosaic-still .hero-copy .eyebrow,
.mosaic-still .hero-line,
.mosaic-still .hero-shade,
.mosaic-still .hero-bottom { animation: none; }

.mosaic-loading .hero-image,
.mosaic-loading .mosaic-tile,
.mosaic-loading .hero-copy .eyebrow,
.mosaic-loading .hero-line,
.mosaic-loading .hero-shade,
.mosaic-loading .hero-bottom { animation-play-state: paused; }

@media (max-width: 700px) {
  .mosaic-hero {
    display: block;
    min-height: 650px;
    height: calc(100svh - 80px);
    max-height: 900px;
  }
  .mosaic-hero .hero-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }
  .mosaic-hero .mosaic-tile img {
    object-position: var(--mobile-photo-position, var(--photo-position, center));
  }
  .mosaic-tile:nth-child(1) { grid-area: 1 / 1 / 2 / 3; }
  .mosaic-tile:nth-child(2) { grid-area: 2 / 1 / 3 / 2; }
  .mosaic-tile:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
  .mosaic-tile:nth-child(5) { grid-area: 3 / 1 / 5 / 2; }
  .mosaic-tile:nth-child(7) { grid-area: 3 / 2 / 4 / 3; }
  .mosaic-tile:nth-child(10) { grid-area: 4 / 2 / 5 / 3; }
  .mosaic-tile:nth-child(4),
  .mosaic-tile:nth-child(6),
  .mosaic-tile:nth-child(8),
  .mosaic-tile:nth-child(9) { display: none; }
  .mosaic-hero .hero-copy { padding: 30px 14px 100px; }
  .mosaic-hero h1 { font-size: clamp(42px, 11.8vw, 78px); margin-top: 20px; }
  .mosaic-hero .hero-copy .eyebrow { font-size: 10px; letter-spacing: .16em; }
  .mosaic-hero .hero-bottom { padding-top: 20px; left: 20px; right: 20px; }
  .mosaic-hero .hero-bottom > p { font-size: 14px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic-hero .hero-image,
  .mosaic-hero .mosaic-tile,
  .mosaic-hero .hero-copy .eyebrow,
  .mosaic-hero .hero-line,
  .mosaic-hero .hero-shade,
  .mosaic-hero .hero-bottom { animation: none; }
}
