.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  
  --panel-left: calc(50% - 833px);
  --panel-width: 734px;
  --panel-center-x: calc(var(--panel-left) + var(--panel-width) / 2);
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slides {
  background: #000;
}

.hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-in, visibility 0s linear 0.25s;
}

.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease-out 0.15s, visibility 0s linear 0.15s;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide:first-child img {
  animation: hero-fade 0.3s var(--ease-in-out-cubic) both;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  container-type: size;
}

.hero__layer {
  position: absolute;
  margin: 0;
}

.hero__drawing {
  bottom: 0;
  left: calc(50% - 632px);
  width: 454px;
  height: 380px;
}

.hero__panel {
  top: 0;
  left: var(--panel-left);
  width: var(--panel-width);
  height: 100%;
  background: rgb(17 17 17 / 50%);
}

.hero__bar {
  background: #fff;
}

.hero__bar--frame-left { left: calc(50% - 294px); top: calc(50% - 191.5px); width: 8px; height: 385px; }
.hero__bar--frame-top { left: calc(50% - 293.5px); top: calc(50% - 192px); width: 385px; height: 8px; }
.hero__bar--frame-right { left: calc(50% + 84px); top: calc(50% - 191.5px); width: 8px; height: 385px; }
.hero__bar--frame-bottom { left: calc(50% - 293.5px); top: calc(50% + 186px); width: 385px; height: 8px; }
.hero__bar--inner-vertical { left: calc(50% - 103px); top: calc(50% + 2px); width: 8px; height: 188px; }
.hero__bar--inner-horizontal { left: calc(50% - 292px); top: calc(50% - 2px); width: 382px; height: 8px; }
.hero__bar--small-horizontal { left: calc(50% - 293px); top: calc(50% + 94px); width: 198px; height: 8px; }
.hero__bar--small-vertical { left: calc(50% - 198px); top: calc(50% + 1px); width: 8px; height: 98px; }
.hero__bar--tiny-horizontal { left: calc(50% - 293.5px); top: calc(50% + 46px); width: 103px; height: 8px; }

.hero__title {
  
  top: 12vh;
  bottom: 56vh;
  height: auto;
  left: 0;
  right: calc(100% - var(--panel-left) - var(--panel-width));
  width: auto;
  padding-left: max(0px, var(--panel-left));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 700 50px/57px var(--font-heading);
  letter-spacing: -2px;
  text-transform: uppercase;
}

.hero__title-image {
  display: block;
  width: 50%;
  max-width: 390px;
  height: auto;
}

.hero__caption-box {
  top: calc(50% - 178.5px);
  left: calc(50% - 509.5px);
  width: 215px;
  height: 57px;
  background: rgb(0 0 0 / 50%);
}

.hero__caption {
  top: calc(50% - 171px);
  left: calc(50% - 461px);
  width: 124px;
  color: #fff;
  font: 700 20px/21px var(--font-heading);
  text-align: right;
  text-transform: uppercase;
}

.hero__panel { animation: hero-fade 0.3s var(--ease-in-out-quart) both; }
.hero__drawing { animation: hero-drawing 2s var(--ease-in-out-quart) 0.5s both; }
.hero__bar--frame-left { animation: hero-wipe-down 0.3s var(--ease-in-out-quart) 0.3s both; }
.hero__bar--frame-top { animation: hero-wipe-right 0.3s var(--ease-in-out-quart) 0.3s both; }
.hero__bar--frame-right { animation: hero-wipe-down 0.3s var(--ease-in-out-quart) 0.5s both; }
.hero__bar--frame-bottom { animation: hero-wipe-right 0.3s var(--ease-in-out-quart) 0.5s both; }
.hero__bar--inner-horizontal { animation: hero-wipe-right 0.3s var(--ease-in-out-quart) 0.7s both; }
.hero__bar--inner-vertical { animation: hero-wipe-down 0.3s var(--ease-in-out-quart) 0.8s both; }
.hero__bar--small-horizontal { animation: hero-wipe-left 0.3s var(--ease-in-out-quart) 0.9s both; }
.hero__bar--small-vertical { animation: hero-rise 0.3s var(--ease-in-out-cubic) 1s both; }
.hero__bar--tiny-horizontal { animation: hero-wipe-left 0.3s var(--ease-in-out-quart) 1.1s both; }
.hero__caption-box { animation: hero-wipe-right 0.5s var(--ease-in-out-quart) 1.2s both; }
.hero__caption { animation: hero-slide-from-left 0.6s var(--ease-out-quad) 1.3s both; }
.hero__title { animation: hero-slide-from-right 0.6s var(--ease-out-quad) 1.5s both; }

.hero__bullets,
.hero__arrow {
  animation: hero-fade 1s var(--ease-in-out-quart) 1s both;
}

@keyframes hero-fade {
  from { opacity: 0; }
}

@keyframes hero-drawing {
  from { opacity: 0; transform: scale(0.9); }
}

@keyframes hero-wipe-right {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes hero-wipe-left {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0); }
}

@keyframes hero-wipe-down {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes hero-rise {
  from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(100%); }
  to { opacity: 1; clip-path: inset(0); transform: none; }
}

@keyframes hero-slide-from-left {
  from { opacity: 0; transform: translateX(-50px); }
}

@keyframes hero-slide-from-right {
  from { opacity: 0; transform: translateX(50px); }
}

.hero__bullets {
  position: absolute;
  top: 50%;
  left: 96px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(-50%);
}

.hero__bullet {
  position: relative;
  width: 7px;
  height: 30px;
  padding: 0 3px;
  border: 0;
  background: none;
}

.hero__bullet::after {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 1px;
  height: 30px;
  background: #fff;
  transition: width 0.2s ease-out;
}

.hero__bullet:hover::after,
.hero__bullet.is-active::after {
  width: 6px;
}

.hero__arrow {
  position: absolute;
  bottom: 20px;
  z-index: 3;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: var(--color-ink);
  color: #fff;
  font-size: 30px;
  transition: color 0.3s;
}

.hero__arrow:hover {
  color: rgb(255 255 255 / 80%);
}

.hero__arrow--next {
  right: 20px;
}

.hero__arrow--prev {
  right: 100px;
}

@media (min-width: 1601px) {
  .hero { --panel-left: calc(50% - 968px); --panel-width: 770px; }
  .hero__drawing { top: calc(50% + 12.5px); bottom: auto; left: calc(50% - 930.5px); width: 639px; height: 535px; }
  .hero__bar--frame-left { left: calc(50% - 440px); top: calc(50% - 242.5px); width: 10px; height: 485px; }
  .hero__bar--frame-top { left: calc(50% - 440.5px); top: calc(50% - 245px); width: 485px; height: 10px; }
  .hero__bar--frame-right { left: calc(50% + 35px); top: calc(50% - 242.5px); width: 10px; height: 485px; }
  .hero__bar--frame-bottom { left: calc(50% - 440.5px); top: calc(50% + 232px); width: 485px; height: 10px; }
  .hero__bar--inner-vertical { left: calc(50% - 202px); top: calc(50% - 2.5px); width: 10px; height: 235px; }
  .hero__bar--inner-horizontal { left: calc(50% - 439px); top: calc(50% - 4px); width: 478px; height: 10px; }
  .hero__bar--small-horizontal { left: calc(50% - 439.5px); top: calc(50% + 114px); width: 247px; height: 10px; }
  .hero__bar--small-vertical { left: calc(50% - 321px); top: calc(50% - 1.5px); width: 10px; height: 123px; }
  
  .hero__bar--tiny-horizontal {
    top: calc(50% - min(434px, 50%) + 487px);
    left: calc(50% - min(650px, 100cqh * 650 / 868) + 209px);
    width: 129px;
    height: 10px;
  }
  .hero__title { font-size: 60px; line-height: 67px; }
  .hero__caption-box { top: calc(50% - 233px); left: calc(50% - 690.5px); width: 249px; height: 66px; }
  .hero__caption { top: calc(50% - 222px); left: calc(50% - 630px); line-height: 22px; }
}

@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .hero {
    height: calc(100vh - 70px);
  }
}

@media (max-width: 849px) {
  .hero { --panel-left: calc(50% - 735px); }
  .hero__drawing { left: calc(50% - 454px); }
  .hero__bar--frame-left { left: calc(50% - 196px); }
  .hero__bar--frame-top { left: calc(50% - 195.5px); }
  .hero__bar--frame-right { left: calc(50% + 182px); }
  .hero__bar--frame-bottom { left: calc(50% - 195.5px); }
  .hero__bar--inner-vertical { left: calc(50% - 5px); }
  .hero__bar--inner-horizontal { left: calc(50% - 194px); }
  .hero__bar--small-horizontal { left: calc(50% - 195px); }
  .hero__bar--small-vertical { left: calc(50% - 100px); }
  .hero__bar--tiny-horizontal { left: calc(50% - 195.5px); }
  
  .hero__caption-box { top: calc(50% - 183px); left: calc(50% - 446.5px); width: 249px; height: 66px; }
  .hero__caption { left: calc(50% - 387px); line-height: 22px; }
}

@media (max-width: 768px) {
  
  .hero__title-image {
    width: 60%;
    max-width: none;
  }
}

@media (max-width: 481px) {
  .hero__arrow {
    display: grid;
  }
}

@media (max-width: 479px) {
  .hero__bullets { display: none; }

  .hero { --panel-left: calc(50% - 732px); }
  .hero__drawing { left: calc(50% - 239px); width: 240px; height: 201px; }
  .hero__bar--frame-left { left: calc(50% - 167.5px); top: calc(50% - 166.5px); width: 7px; height: 335px; }
  .hero__bar--frame-top { left: calc(50% - 167.5px); top: calc(50% - 166.5px); width: 335px; height: 7px; }
  .hero__bar--frame-right { left: calc(50% + 160.5px); top: calc(50% - 166.5px); width: 7px; height: 335px; }
  .hero__bar--frame-bottom { left: calc(50% - 167.5px); top: calc(50% + 161.5px); width: 335px; height: 7px; }
  .hero__bar--inner-vertical { left: calc(50% - 0.5px); top: calc(50% + 1.5px); width: 7px; height: 165px; }
  .hero__bar--inner-horizontal { left: calc(50% - 167.5px); top: calc(50% - 1.5px); width: 335px; height: 7px; }
  .hero__bar--small-horizontal { left: calc(50% - 166.5px); top: calc(50% + 80.5px); width: 173px; height: 7px; }
  .hero__bar--small-vertical { left: calc(50% - 83.5px); top: calc(50% - 1px); width: 7px; height: 86px; }
  .hero__bar--tiny-horizontal { left: calc(50% - 166px); top: calc(50% + 39.5px); width: 90px; height: 7px; }
  .hero__title { font-size: 40px; line-height: 47px; }
  .hero__caption-box { top: calc(50% - 232px); left: calc(50% - 246.5px); }
  .hero__caption { top: calc(50% - 220px); left: calc(50% - 143px); }
}

@media (hover: none) {
  .hero__bullets { display: none; }
}
