.hero-v3 {
  position: relative;
  display: block;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #050a0b;
}

.hero-v3-media {
  position: absolute;
  inset: 88px 0 74px;
  overflow: hidden;
  background: #061012;
}

.photo-puzzle {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.photo-shard {
  position: absolute;
  width: 25%;
  height: 50%;
  display: block;
  background-image: url('./assets/hero-assembled-reference-v3.png');
  background-size: 400% 200%;
  background-repeat: no-repeat;
  will-change: transform, opacity, filter;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08);
}

.shard-1 { left: 0; top: 0; background-position: 0 0; }
.shard-2 { left: 25%; top: 0; background-position: 33.333% 0; }
.shard-3 { left: 50%; top: 0; background-position: 66.667% 0; }
.shard-4 { left: 75%; top: 0; background-position: 100% 0; }
.shard-5 { left: 0; top: 50%; background-position: 0 100%; }
.shard-6 { left: 25%; top: 50%; background-position: 33.333% 100%; }
.shard-7 { left: 50%; top: 50%; background-position: 66.667% 100%; }
.shard-8 { left: 75%; top: 50%; background-position: 100% 100%; }

.hero-v3-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 8, 9, .94) 0%, rgba(3, 8, 9, .78) 27%, rgba(3, 8, 9, .24) 55%, rgba(3, 8, 9, .06) 100%),
    linear-gradient(0deg, rgba(3, 8, 9, .58), transparent 42%);
  transition: opacity .8s ease;
  pointer-events: none;
}

.hero-v3-copy {
  position: absolute;
  z-index: 5;
  left: 5.5vw;
  top: 50%;
  width: min(760px, 52vw);
  transform: translateY(-43%) translateX(-24px);
  opacity: 0;
  transition: opacity 1s ease, transform 1.15s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

.hero-v3.is-assembled .hero-v3-copy {
  opacity: 1;
  transform: translateY(-43%) translateX(0);
  pointer-events: auto;
}

.hero-v3 h1 {
  margin: 28px 0 24px;
  max-width: 900px;
  font: 500 clamp(54px, 5.3vw, 92px)/.94 Space Grotesk;
  letter-spacing: -.062em;
}

.hero-v3 h1 em {
  display: inline-block;
  color: #efc36f;
  font-style: normal;
  -webkit-text-stroke: 0;
}

.hero-v3 .hero-lede {
  max-width: 650px;
  color: rgba(239, 242, 237, .78);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .7);
}

.hero-v3-status,
.hero-v3-controls {
  position: absolute;
  z-index: 7;
  bottom: 94px;
}

.hero-v3-status {
  left: auto;
  right: 5vw;
  bottom: 142px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(5, 10, 11, .66);
  backdrop-filter: blur(12px);
  color: #c6cbc7;
  font: 500 8px Space Grotesk;
  letter-spacing: .12em;
}

.hero-v3-controls {
  right: 5vw;
  display: flex;
  gap: 8px;
}

.hero-v3-controls button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(5, 10, 11, .72);
  backdrop-filter: blur(14px);
  color: #edf0eb;
  font-size: 10px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}

.hero-v3-controls button:hover,
.hero-v3-controls button:focus-visible {
  color: #0b0d0c;
  background: #efc36f;
  border-color: #efc36f;
  outline: none;
}

.hero-v3-controls button:disabled {
  opacity: .5;
  cursor: default;
}

.hero-v3-principles {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0 14vw;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: #071012;
  color: #a7aea9;
  font: 500 9px Space Grotesk;
  letter-spacing: .13em;
  text-align: center;
}

.hero-v3-principles span::first-letter { color: #efc36f; }

.hero-v3.photo-only .hero-v3-copy,
.hero-v3.photo-only .hero-v3-status {
  opacity: 0;
  pointer-events: none;
}

.hero-v3.photo-only .hero-v3-shade { opacity: 0; }

@media (max-width: 900px) {
  .hero-v3 { min-height: 920px; }
  .hero-v3-media { inset: 72px 0 118px; }
  .hero-v3-copy {
    left: 24px;
    right: 24px;
    top: 45%;
    width: auto;
    transform: translateY(-40%) translateX(-16px);
  }
  .hero-v3.is-assembled .hero-v3-copy { transform: translateY(-40%) translateX(0); }
  .hero-v3 h1 { font-size: clamp(46px, 12vw, 72px); }
  .hero-v3 .hero-lede { font-size: 15px; }
  .hero-v3-status { display: none; }
  .hero-v3-controls {
    left: 20px;
    right: 20px;
    bottom: 128px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .hero-v3-controls button { flex: 0 0 auto; }
  .hero-v3-principles {
    height: 118px;
    padding: 14px 20px;
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v3-copy { transition: none; }
}
