.hateful-page {
  --hateful-gap: clamp(4px, .35vw, 7px);
  background: #fff;
  color: var(--red);
}

.hateful-page .menu-toggle {
  background: var(--red);
  color: #fff;
}

.hateful-layout {
  grid-template-columns: minmax(260px, 26vw) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 94px);
  align-items: start;
  padding: clamp(24px, 2.8vw, 46px) clamp(20px, 2.5vw, 40px) clamp(80px, 9vw, 150px);
  background: #fff;
}

.hateful-sidebar {
  gap: clamp(74px, 12vh, 148px);
  color: var(--red);
}

.hateful-page .work-detail-logo {
  width: clamp(126px, 11vw, 208px);
}

.hateful-intro {
  gap: clamp(17px, 1.8vw, 28px);
  max-width: 390px;
}

.hateful-kicker {
  margin: 0 0 -8px;
  font-size: var(--type-case-kicker);
  font-weight: 800;
  line-height: var(--leading-case-kicker);
  text-transform: uppercase;
}

.hateful-page h1 {
  font-size: var(--type-case-title);
  line-height: var(--leading-case-title);
}

.hateful-story {
  display: grid;
  gap: clamp(18px, 1.7vw, 26px);
}

.hateful-story p {
  max-width: 370px;
  font-size: var(--type-case-copy);
  line-height: var(--leading-case-copy);
}

.hateful-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
  margin: 4px 0 0;
  padding-top: 18px;
  border-top: 1px solid currentColor;
}

.hateful-meta div:last-child {
  grid-column: 1 / -1;
}

.hateful-meta dt,
.hateful-meta dd {
  margin: 0;
}

.hateful-meta dt {
  margin-bottom: 5px;
  font-size: var(--type-case-kicker);
  font-weight: 800;
  text-transform: uppercase;
}

.hateful-meta dd {
  font-size: var(--type-case-meta);
  line-height: var(--leading-case-meta);
}

.hateful-gallery {
  display: grid;
  align-content: start;
  width: min(100%, 1120px);
  min-width: 0;
  justify-self: end;
  gap: var(--hateful-gap);
  padding-top: clamp(4px, 1vw, 16px);
}

.hateful-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: #fff;
}

.hateful-panel img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hateful-logo-panel {
  padding: clamp(18px, 2vw, 34px) 0;
}

.hateful-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hateful-gap);
  min-width: 0;
  align-items: stretch;
}

.hateful-pair .hateful-panel {
  height: 100%;
}

.hateful-pair .hateful-panel img {
  height: 100%;
  object-fit: cover;
}

.hateful-pair--identity {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hateful-pair--identity .hateful-panel:last-child img {
  object-fit: contain;
}

.hateful-pair--tour {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hateful-pair--keta {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.hateful-release-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--hateful-gap);
  min-width: 0;
}

.hateful-release-grid__wide {
  grid-column: span 2;
}

.hateful-release-grid .hateful-panel img {
  height: 100%;
  object-fit: cover;
}

.hateful-video-stack {
  display: grid;
  gap: 2px;
  margin-top: clamp(10px, 1vw, 18px);
}

.hateful-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.hateful-video__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
}

.hateful-video__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .08);
  transition: background-color 220ms ease;
}

.hateful-video__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hateful-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(58px, 7vw, 82px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, background-color 220ms ease;
}

.hateful-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  transform: translate(-42%, -50%);
}

.hateful-video__external {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  padding: 7px 9px;
  color: #fff;
  background: rgba(0, 0, 0, .76);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hateful-video__poster:hover::after,
.hateful-video__poster:focus-visible::after {
  background: rgba(0, 0, 0, .2);
}

.hateful-video__poster:hover .hateful-video__play,
.hateful-video__poster:focus-visible .hateful-video__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.hateful-video__poster:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.hateful-video.is-playing .hateful-video__poster {
  display: none;
}

.hateful-video iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

.hateful-video--separated {
  margin-top: clamp(100px, 12vw, 210px);
}

.hateful-racing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hateful-gap);
  min-width: 0;
  margin-top: 0;
}

.hateful-racing-grid .hateful-panel img {
  height: 100%;
  object-fit: cover;
}

.hateful-music-system {
  display: grid;
  gap: clamp(16px, 1.4vw, 26px);
  margin-top: clamp(110px, 13vw, 240px);
}

.hateful-page .work-more {
  border-bottom: 5px solid var(--red);
}

.hateful-page .work-more-card {
  min-height: 0;
  aspect-ratio: 1001 / 592;
}

@media (max-width: 900px) {
  .hateful-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hateful-sidebar {
    position: relative;
    min-height: auto;
    gap: 54px;
    padding-bottom: 20px;
  }

  .hateful-intro,
  .hateful-story p {
    max-width: 640px;
  }

  .hateful-gallery {
    width: 100%;
    margin-inline: 0;
  }

  .hateful-racing-grid {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .hateful-layout {
    gap: 30px;
    padding: 18px 16px 64px;
  }

  .hateful-page .work-detail-logo {
    width: 112px;
  }

  .hateful-page h1 {
    font-size: var(--type-case-title);
  }

  .hateful-meta {
    grid-template-columns: 1fr;
  }

  .hateful-meta div:last-child {
    grid-column: 1;
  }

  .hateful-gallery {
    width: 100%;
    margin-left: 0;
  }

  .hateful-pair,
  .hateful-pair--identity,
  .hateful-pair--tour {
    grid-template-columns: 1fr;
  }

  .hateful-release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hateful-release-grid__wide {
    grid-column: span 1;
  }

  .hateful-video--separated {
    margin-top: 48px;
  }

  .hateful-racing-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .hateful-music-system {
    margin-top: 76px;
  }
}
